Ignore:
Timestamp:
2016-05-17T17:58:09+02:00 (8 years ago)
Author:
Don-vip
Message:

findbugs - BIT_SIGNED_CHECK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/LineClip.java

    r10181 r10244  
    8585                done = true;
    8686            } else {
    87                 long x = 0, y = 0;
     87                long x = 0;
     88                long y = 0;
    8889                outcodeOut = outcode0 != 0 ? outcode0 : outcode1;
    89                 if ((outcodeOut & OUT_TOP) > 0) {
     90                if ((outcodeOut & OUT_TOP) != 0) {
    9091                    x = x1 + (x2 - x1) * (ymax - y1)/(y2 - y1);
    9192                    y = ymax;
    92                 } else if ((outcodeOut & OUT_BOTTOM) > 0) {
     93                } else if ((outcodeOut & OUT_BOTTOM) != 0) {
    9394                    x = x1 + (x2 - x1) * (ymin - y1)/(y2 - y1);
    9495                    y = ymin;
    95                 } else if ((outcodeOut & OUT_RIGHT) > 0) {
     96                } else if ((outcodeOut & OUT_RIGHT) != 0) {
    9697                    y = y1 + (y2 - y1) * (xmax - x1)/(x2 - x1);
    9798                    x = xmax;
    98                 } else if ((outcodeOut & OUT_LEFT) > 0) {
     99                } else if ((outcodeOut & OUT_LEFT) != 0) {
    99100                    y = y1 + (y2 - y1) * (xmin - x1)/(x2 - x1);
    100101                    x = xmin;
Note: See TracChangeset for help on using the changeset viewer.