Ignore:
Timestamp:
2013-09-08T05:51:16+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar - fix various violations

File:
1 edited

Legend:

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

    r6084 r6223  
    188188        @Override
    189189        public boolean evaluate(OsmPrimitive p) {
    190             if (hds.getHistory(p.getPrimitiveId()) == null)
     190            History h = hds.getHistory(p.getPrimitiveId());
     191            if (h == null)
    191192                // reload if the history is not in the cache yet
    192193                return true;
    193             else if (!p.isNew() && hds.getHistory(p.getPrimitiveId()).getByVersion(p.getUniqueId()) == null)
     194            else if (!p.isNew() && h.getByVersion(p.getUniqueId()) == null)
    194195                // reload if the history object of the selected object is not in the cache yet
    195196                return true;
Note: See TracChangeset for help on using the changeset viewer.