Ignore:
Timestamp:
2015-05-17T15:52:24+02:00 (9 years ago)
Author:
Don-vip
Message:

squid:S1244 - Floating point numbers should not be tested for equality

File:
1 edited

Legend:

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

    r8346 r8384  
    342342        boolean isCentric = true;
    343343        for (Double param : towgs84Param) {
    344             if (param != 0.0) {
     344            if (Double.doubleToRawLongBits(param) != 0) {
    345345                isCentric = false;
    346346                break;
     
    351351        boolean is3Param = true;
    352352        for (int i = 3; i<towgs84Param.size(); i++) {
    353             if (towgs84Param.get(i) != 0.0) {
     353            if (Double.doubleToRawLongBits(towgs84Param.get(i)) != 0) {
    354354                is3Param = false;
    355355                break;
Note: See TracChangeset for help on using the changeset viewer.