Ignore:
Timestamp:
2016-02-25T00:50:30+01:00 (4 years ago)
Author:
Don-vip
Message:

findbugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/JoinNodeWayAction.java

    r9067 r9880  
    202202            double distanceFirst = firstPosition.distance(refPoint);
    203203            double distanceSecond = secondPosition.distance(refPoint);
    204             double difference =  distanceFirst - distanceSecond;
    205 
    206             if (difference > 0.0) return 1;
    207             if (difference < 0.0) return -1;
    208             return 0;
     204            return Double.compare(distanceFirst, distanceSecond);
    209205        }
    210206    }
Note: See TracChangeset for help on using the changeset viewer.