Ignore:
Timestamp:
2015-06-06T01:48:41+02:00 (9 years ago)
Author:
Don-vip
Message:

fix some minor sonar/code style issues:

  • Avoid Protected Field In Final Class
  • Class defines fields that are used only as locals
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java

    r8444 r8468  
    767767        }
    768768
     769        /**
     770         * Constructs a new {@code SearchPopupMenu}.
     771         */
    769772        public SearchPopupMenu() {
    770773            for (SearchSetting ss: org.openstreetmap.josm.actions.search.SearchAction.getSearchHistory()) {
     
    780783     */
    781784    protected static class SelectionMenuItem extends JMenuItem implements ActionListener {
    782         private final transient DefaultNameFormatter df = DefaultNameFormatter.getInstance();
    783785        protected transient Collection<? extends OsmPrimitive> sel;
    784786
    785787        public SelectionMenuItem(Collection<? extends OsmPrimitive> sel) {
    786             super();
    787788            this.sel = sel;
    788789            int ways = 0;
     
    816817                this.sel=new ArrayList<>(); // empty selection
    817818            }
     819            DefaultNameFormatter df = DefaultNameFormatter.getInstance();
    818820            if (ways + nodes + relations == 1) {
    819821                text.append(": ");
Note: See TracChangeset for help on using the changeset viewer.