Ignore:
Timestamp:
2015-10-10T01:40:42+02:00 (11 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/widgets/MultiSplitLayout.java

    r8840 r8846  
    11581158            }
    11591159        } else {
    1160             throwParseException(st, "unrecognized attribute \"" + name + "\"");
     1160            throwParseException(st, "unrecognized attribute \"" + name + '\"');
    11611161        }
    11621162    }
     
    12131213                    parseSplit(st, split);
    12141214                } else {
    1215                     throwParseException(st, "unrecognized node type '" + nodeType + "'");
     1215                    throwParseException(st, "unrecognized node type '" + nodeType + '\'');
    12161216                }
    12171217            }
Note: See TracChangeset for help on using the changeset viewer.