Ignore:
Timestamp:
2014-01-31T02:44:56+01:00 (6 years ago)
Author:
Don-vip
Message:

Sonar - fix various issues

Location:
trunk/src/org/openstreetmap/josm/gui/history
Files:
3 edited

Legend:

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

    r6743 r6792  
    525525            OsmDataLayer editLayer = Main.main.getEditLayer();
    526526            if (editLayer == null) return null;
    527             OsmPrimitive p = editLayer.data.getPrimitiveById(latest.getId(), latest.getType());
    528             return p;
     527            return editLayer.data.getPrimitiveById(latest.getId(), latest.getType());
    529528        }
    530529
  • trunk/src/org/openstreetmap/josm/gui/history/NodeListViewer.java

    r6666 r6792  
    223223            OsmDataLayer editLayer = Main.main.getEditLayer();
    224224            if (editLayer == null) return null;
    225             OsmPrimitive p = editLayer.data.getPrimitiveById(primitiveId);
    226             return p;
     225            return editLayer.data.getPrimitiveById(primitiveId);
    227226        }
    228227
  • trunk/src/org/openstreetmap/josm/gui/history/RelationMemberListViewer.java

    r6207 r6792  
    2121public class RelationMemberListViewer extends HistoryViewerPanel {
    2222
    23     protected class MemberModelChanged implements TableModelListener {
     23    protected static class MemberModelChanged implements TableModelListener {
    2424        private final JTable table;
    2525
     
    3535    }
    3636
     37    @Override
    3738    protected JTable buildReferenceTable() {
    3839        JTable table = new JTable(
     
    4748    }
    4849
     50    @Override
    4951    protected JTable buildCurrentTable() {
    5052        JTable table = new JTable(
Note: See TracChangeset for help on using the changeset viewer.