Ignore:
Timestamp:
2013-09-22T18:36:07+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar/FindBugs - various bugfixes / violation fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetItems.java

    r6231 r6246  
    204204            String cstring;
    205205            if(count > 0 && !required) {
    206                 cstring = "0,"+String.valueOf(count);
     206                cstring = "0,"+count;
    207207            } else if(count > 0) {
    208208                cstring = String.valueOf(count);
     
    10101010        }
    10111011
    1012         protected String getDisplayIfNull(String display) {
    1013             return display;
     1012        protected String getDisplayIfNull() {
     1013            return null;
    10141014        }
    10151015
     
    10201020            String value = null;
    10211021            if (display == null) {
    1022                 display = getDisplayIfNull(display);
     1022                display = getDisplayIfNull();
    10231023            }
    10241024
     
    12081208
    12091209        @Override
    1210         protected String getDisplayIfNull(String display) {
     1210        protected String getDisplayIfNull() {
    12111211            if (combo.isEditable())
    12121212                return combo.getEditor().getItem().toString();
    12131213            else
    1214                 return display;
    1215 
     1214                return null;
    12161215        }
    12171216    }
Note: See TracChangeset for help on using the changeset viewer.