Changeset 10248 in josm for trunk


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

findbugs - NM_CONFUSING

Location:
trunk/src/org/openstreetmap/josm
Files:
5 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        }
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableLinkedCellRenderer.java

    r10217 r10248  
    3333
    3434        this.value = (WayConnectionType) value;
    35         setToolTipText(((WayConnectionType) value).getToolTip());
     35        setToolTipText(((WayConnectionType) value).getTooltip());
    3636        renderBackgroundForeground(getModel(table), null, isSelected);
    3737        return this;
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/sort/WayConnectionType.java

    r8846 r10248  
    7373    }
    7474
    75     public String getToolTip() {
     75    /**
     76     * Returns tooltip.
     77     * @return tooltip
     78     * @since 10248
     79     */
     80    public String getTooltip() {
    7681        if (!isValid())
    7782            return "";
Note: See TracChangeset for help on using the changeset viewer.