Ignore:
Timestamp:
2017-01-12T01:42:44+01:00 (8 years ago)
Author:
Don-vip
Message:

sonar - fb-contrib:NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION - Performance - Method needlessly boxes a boolean constant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/datatransfer/ClipboardUtils.java

    r10801 r11454  
    141141            try {
    142142                getClipboard().setContents(transferable, new DoNothingClipboardOwner());
    143                 return true;
     143                return Boolean.TRUE;
    144144            } catch (IllegalStateException ex) {
    145145                Main.error(ex);
    146                 return false;
     146                return Boolean.FALSE;
    147147            }
    148148        });
Note: See TracChangeset for help on using the changeset viewer.