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/gui/ScrollViewport.java

    r10217 r10244  
    9090
    9191        // UP
    92         if ((direction & UP_DIRECTION) > 0) {
     92        if ((direction & UP_DIRECTION) != 0) {
    9393            button = new JButton();
    9494            button.addMouseListener(new ScrollViewPortMouseListener(UP_DIRECTION));
     
    100100
    101101        // DOWN
    102         if ((direction & DOWN_DIRECTION) > 0) {
     102        if ((direction & DOWN_DIRECTION) != 0) {
    103103            button = new JButton();
    104104            button.addMouseListener(new ScrollViewPortMouseListener(DOWN_DIRECTION));
     
    110110
    111111        // LEFT
    112         if ((direction & LEFT_DIRECTION) > 0) {
     112        if ((direction & LEFT_DIRECTION) != 0) {
    113113            button = new JButton();
    114114            button.addMouseListener(new ScrollViewPortMouseListener(LEFT_DIRECTION));
     
    120120
    121121        // RIGHT
    122         if ((direction & RIGHT_DIRECTION) > 0) {
     122        if ((direction & RIGHT_DIRECTION) != 0) {
    123123            button = new JButton();
    124124            button.addMouseListener(new ScrollViewPortMouseListener(RIGHT_DIRECTION));
Note: See TracChangeset for help on using the changeset viewer.