Ignore:
Timestamp:
2016-05-17T18:19:04+02:00 (3 years ago)
Author:
Don-vip
Message:

findbugs - NM_CONFUSING

Location:
trunk/src/org/openstreetmap/josm/command
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/Command.java

    r9371 r10248  
    6363    public static class OldNodeState {
    6464
    65         private final LatLon latlon;
     65        private final LatLon latLon;
    6666        private final EastNorth eastNorth; // cached EastNorth to be used for applying exact displacement
    6767        private final boolean modified;
     
    7272         */
    7373        public OldNodeState(Node node) {
    74             latlon = node.getCoor();
     74            latLon = node.getCoor();
    7575            eastNorth = node.getEastNorth();
    7676            modified = node.isModified();
     
    8181         * @return old lat/lon
    8282         * @see Node#getCoor()
     83         * @since 10248
    8384         */
    84         public final LatLon getLatlon() {
    85             return latlon;
     85        public final LatLon getLatLon() {
     86            return latLon;
    8687        }
    8788
     
    106107        @Override
    107108        public int hashCode() {
    108             return Objects.hash(latlon, eastNorth, modified);
     109            return Objects.hash(latLon, eastNorth, modified);
    109110        }
    110111
     
    115116            OldNodeState that = (OldNodeState) obj;
    116117            return modified == that.modified &&
    117                     Objects.equals(latlon, that.latlon) &&
     118                    Objects.equals(latLon, that.latLon) &&
    118119                    Objects.equals(eastNorth, that.eastNorth);
    119120        }
  • trunk/src/org/openstreetmap/josm/command/MoveCommand.java

    r9371 r10248  
    218218        for (Node n : nodes) {
    219219            OldNodeState os = it.next();
    220             n.setCoor(os.getLatlon());
     220            n.setCoor(os.getLatLon());
    221221            n.setModified(os.isModified());
    222222        }
  • trunk/src/org/openstreetmap/josm/command/TransformNodesCommand.java

    r9371 r10248  
    9595        for (Node n : nodes) {
    9696            OldNodeState os = oldStates.get(n);
    97             n.setCoor(os.getLatlon());
     97            n.setCoor(os.getLatLon());
    9898            n.setModified(os.isModified());
    9999        }
Note: See TracChangeset for help on using the changeset viewer.