Ignore:
Timestamp:
2020-06-14T14:55:26+02:00 (4 years ago)
Author:
simon04
Message:

see #19334 - https://errorprone.info/bugpattern/FloatingPointLiteralPrecision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/proj/TransverseMercator.java

    r14273 r16627  
    8585     * case of the Transverse Mercator.
    8686     */
    87     private static final double FC1 = 1.00000000000000000000000,  // 1/1
    88                                 FC2 = 0.50000000000000000000000,  // 1/2
    89                                 FC3 = 0.16666666666666666666666,  // 1/6
    90                                 FC4 = 0.08333333333333333333333,  // 1/12
    91                                 FC5 = 0.05000000000000000000000,  // 1/20
    92                                 FC6 = 0.03333333333333333333333,  // 1/30
    93                                 FC7 = 0.02380952380952380952380,  // 1/42
    94                                 FC8 = 0.01785714285714285714285;  // 1/56
     87    private static final double FC1 = 1. / 1;
     88    private static final double FC2 = 1. / 2;
     89    private static final double FC3 = 1. / 6;
     90    private static final double FC4 = 1. / 12;
     91    private static final double FC5 = 1. / 20;
     92    private static final double FC6 = 1. / 30;
     93    private static final double FC7 = 1. / 42;
     94    private static final double FC8 = 1. / 56;
    9595
    9696    /**
Note: See TracChangeset for help on using the changeset viewer.