Ignore:
Timestamp:
2016-06-01T23:17:40+02:00 (5 years ago)
Author:
Don-vip
Message:

sonar - squid:S1854 - Dead stores should be removed

Location:
trunk/src/org/openstreetmap/josm/data/projection
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2Util.java

    r9981 r10308  
    7272     */
    7373    public static float getFloat(byte[] b, boolean bigEndian) {
    74         int i = 0;
     74        int i;
    7575        if (bigEndian) {
    7676            i = getIntBE(b, 0);
     
    8989     */
    9090    public static double getDouble(byte[] b, boolean bigEndian) {
    91         int i = 0;
    92         int j = 0;
     91        int i;
     92        int j;
    9393        if (bigEndian) {
    9494            i = getIntBE(b, 0);
     
    9898            j = getIntLE(b, 0);
    9999        }
    100         long l = ((long) i << 32) |
    101         (j & 0x00000000FFFFFFFFL);
     100        long l = ((long) i << 32) | (j & 0x00000000FFFFFFFFL);
    102101        return Double.longBitsToDouble(l);
    103102    }
  • trunk/src/org/openstreetmap/josm/data/projection/proj/SwissObliqueMercator.java

    r10001 r10308  
    102102        double lambda = l / alpha;
    103103        double phi = b;
    104         double s = 0;
    105104
    106105        double prevPhi = -1000;
     
    111110                throw new RuntimeException("Two many iterations");
    112111            prevPhi = phi;
    113             s = 1 / alpha * (log(tan(PI / 4 + b / 2)) - k) + ellps.e
     112            double s = 1 / alpha * (log(tan(PI / 4 + b / 2)) - k) + ellps.e
    114113            * log(tan(PI / 4 + asin(ellps.e * sin(phi)) / 2));
    115114            phi = 2 * atan(exp(s)) - PI / 2;
Note: See TracChangeset for help on using the changeset viewer.