Ignore:
Timestamp:
2017-04-10T00:14:42+02:00 (7 years ago)
Author:
Don-vip
Message:

findbugs - EI_EXPOSE_REP2 + javadoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/CoordinateInfoViewer.java

    r11059 r11878  
    231231        protected final Pair<LatLon, LatLon> getCoordinates() {
    232232            HistoryOsmPrimitive p = getPrimitive();
     233            if (!(p instanceof HistoryNode)) return null;
    233234            HistoryOsmPrimitive opposite = getOppositePrimitive();
    234             if (!(p instanceof HistoryNode)) return null;
    235235            if (!(opposite instanceof HistoryNode)) return null;
    236236            HistoryNode node = (HistoryNode) p;
Note: See TracChangeset for help on using the changeset viewer.