Ignore:
Timestamp:
2015-10-10T01:40:42+02:00 (9 years ago)
Author:
Don-vip
Message:

sonar - fb-contrib - minor performance improvements:

  • Method passes constant String of length 1 to character overridden method
  • Method needlessly boxes a boolean constant
  • Method uses iterator().next() on a List to get the first item
  • Method converts String to boxed primitive using excessive boxing
  • Method converts String to primitive using excessive boxing
  • Method creates array using constants
  • Class defines List based fields but uses them like Sets
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/NodeElemStyle.java

    r8513 r8846  
    390390        s.append(super.toString());
    391391        if (mapImage != null) {
    392             s.append(" icon=[" + mapImage + "]");
     392            s.append(" icon=[" + mapImage + ']');
    393393        }
    394394        if (symbol != null) {
    395             s.append(" symbol=[" + symbol + "]");
     395            s.append(" symbol=[" + symbol + ']');
    396396        }
    397397        if (mapImageAngle != null) {
    398             s.append(" mapImageAngle=[" + mapImageAngle + "]");
     398            s.append(" mapImageAngle=[" + mapImageAngle + ']');
    399399        }
    400400        s.append('}');
Note: See TracChangeset for help on using the changeset viewer.