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

sonar - squid:S1854 - Dead stores should be removed

File:
1 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    }
Note: See TracChangeset for help on using the changeset viewer.