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/data/osm/QuadBuckets.java

    r8836 r8846  
    8080        @Override
    8181        public String toString() {
    82             return super.toString() + "[" + level + "]: " + bbox();
     82            return super.toString() + '[' + level + "]: " + bbox();
    8383        }
    8484
     
    361361
    362362            if (!canRemove()) {
    363                 abort("attempt to remove non-empty child: " + this.content + " " + Arrays.toString(this.getChildren()));
     363                abort("attempt to remove non-empty child: " + this.content + ' ' + Arrays.toString(this.getChildren()));
    364364            }
    365365
Note: See TracChangeset for help on using the changeset viewer.