Changeset 14199 in josm


Ignore:
Timestamp:
2018-08-29T01:43:17+02:00 (13 months ago)
Author:
Don-vip
Message:

spotbugs - BIT_SIGNED_CHECK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/WindowsShortcut.java

    r14091 r14199  
    147147            byte fileAtts = link[fileAttsOffset];
    148148            byte isDirMask = (byte) 0x10;
    149             if ((fileAtts & isDirMask) > 0) {
     149            if ((fileAtts & isDirMask) != 0) {
    150150                isDirectory = true;
    151151            } else {
     
    157157            final byte hasShellMask = (byte) 0x01;
    158158            int shellLen = 0;
    159             if ((flags & hasShellMask) > 0) {
     159            if ((flags & hasShellMask) != 0) {
    160160                // the plus 2 accounts for the length marker itself
    161161                shellLen = bytesToWord(link, shellOffset) + 2;
Note: See TracChangeset for help on using the changeset viewer.