Ignore:
Timestamp:
2015-10-10T01:40:42+02:00 (4 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/util/AdvancedKeyPressDetector.java

    r8537 r8846  
    131131                    for (KeyPressReleaseListener q: keyListeners) {
    132132                        if (Main.isDebugEnabled()) {
    133                             Main.debug(q+" => doKeyPressed("+e+")");
     133                            Main.debug(q+" => doKeyPressed("+e+')');
    134134                        }
    135135                        q.doKeyPressed(e);
     
    144144                        for (KeyPressReleaseListener q: keyListeners) {
    145145                            if (Main.isDebugEnabled()) {
    146                                 Main.debug(q+" => doKeyReleased("+e+")");
     146                                Main.debug(q+" => doKeyReleased("+e+')');
    147147                            }
    148148                            q.doKeyReleased(e);
Note: See TracChangeset for help on using the changeset viewer.