Changeset 11538 in josm


Ignore:
Timestamp:
2017-02-04T15:39:06+01:00 (7 years ago)
Author:
Don-vip
Message:

sonar - fb-contrib:ISB_TOSTRING_APPENDING - Correctness - Method concatenates the result of a toString() call

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/JosmAction.java

    r10972 r11538  
    356356        @Override
    357357        public String toString() {
    358             return "LayerChangeAdapter [" + JosmAction.this.toString() + ']';
     358            return "LayerChangeAdapter [" + JosmAction.this + ']';
    359359        }
    360360    }
     
    371371        @Override
    372372        public String toString() {
    373             return "ActiveLayerChangeAdapter [" + JosmAction.this.toString() + ']';
     373            return "ActiveLayerChangeAdapter [" + JosmAction.this + ']';
    374374        }
    375375    }
     
    386386        @Override
    387387        public String toString() {
    388             return "SelectionChangeAdapter [" + JosmAction.this.toString() + ']';
     388            return "SelectionChangeAdapter [" + JosmAction.this + ']';
    389389        }
    390390    }
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java

    r11383 r11538  
    312312        @Override
    313313        public String toString() {
    314             return "ToggleDialogAction [" + ToggleDialog.this.toString() + ']';
     314            return "ToggleDialogAction [" + ToggleDialog.this + ']';
    315315        }
    316316    }
  • trunk/src/org/openstreetmap/josm/tools/Pair.java

    r10300 r11538  
    6262    @Override
    6363    public String toString() {
    64         return '<'+a.toString()+','+b.toString()+'>';
     64        return "<" + a + ',' + b + '>';
    6565    }
    6666
Note: See TracChangeset for help on using the changeset viewer.