Index: /trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/LineClip.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/LineClip.java	(revision 10243)
+++ /trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/LineClip.java	(revision 10244)
@@ -85,16 +85,17 @@
                 done = true;
             } else {
-                long x = 0, y = 0;
+                long x = 0;
+                long y = 0;
                 outcodeOut = outcode0 != 0 ? outcode0 : outcode1;
-                if ((outcodeOut & OUT_TOP) > 0) {
+                if ((outcodeOut & OUT_TOP) != 0) {
                     x = x1 + (x2 - x1) * (ymax - y1)/(y2 - y1);
                     y = ymax;
-                } else if ((outcodeOut & OUT_BOTTOM) > 0) {
+                } else if ((outcodeOut & OUT_BOTTOM) != 0) {
                     x = x1 + (x2 - x1) * (ymin - y1)/(y2 - y1);
                     y = ymin;
-                } else if ((outcodeOut & OUT_RIGHT) > 0) {
+                } else if ((outcodeOut & OUT_RIGHT) != 0) {
                     y = y1 + (y2 - y1) * (xmax - x1)/(x2 - x1);
                     x = xmax;
-                } else if ((outcodeOut & OUT_LEFT) > 0) {
+                } else if ((outcodeOut & OUT_LEFT) != 0) {
                     y = y1 + (y2 - y1) * (xmin - x1)/(x2 - x1);
                     x = xmin;
Index: /trunk/src/org/openstreetmap/josm/gui/ScrollViewport.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/ScrollViewport.java	(revision 10243)
+++ /trunk/src/org/openstreetmap/josm/gui/ScrollViewport.java	(revision 10244)
@@ -90,5 +90,5 @@
 
         // UP
-        if ((direction & UP_DIRECTION) > 0) {
+        if ((direction & UP_DIRECTION) != 0) {
             button = new JButton();
             button.addMouseListener(new ScrollViewPortMouseListener(UP_DIRECTION));
@@ -100,5 +100,5 @@
 
         // DOWN
-        if ((direction & DOWN_DIRECTION) > 0) {
+        if ((direction & DOWN_DIRECTION) != 0) {
             button = new JButton();
             button.addMouseListener(new ScrollViewPortMouseListener(DOWN_DIRECTION));
@@ -110,5 +110,5 @@
 
         // LEFT
-        if ((direction & LEFT_DIRECTION) > 0) {
+        if ((direction & LEFT_DIRECTION) != 0) {
             button = new JButton();
             button.addMouseListener(new ScrollViewPortMouseListener(LEFT_DIRECTION));
@@ -120,5 +120,5 @@
 
         // RIGHT
-        if ((direction & RIGHT_DIRECTION) > 0) {
+        if ((direction & RIGHT_DIRECTION) != 0) {
             button = new JButton();
             button.addMouseListener(new ScrollViewPortMouseListener(RIGHT_DIRECTION));
Index: /trunk/src/org/openstreetmap/josm/gui/SelectionManager.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/SelectionManager.java	(revision 10243)
+++ /trunk/src/org/openstreetmap/josm/gui/SelectionManager.java	(revision 10244)
@@ -201,6 +201,6 @@
         if (e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() > 1 && Main.main.getCurrentDataSet() != null) {
             SelectByInternalPointAction.performSelection(Main.map.mapView.getEastNorth(e.getX(), e.getY()),
-                    (e.getModifiersEx() & MouseEvent.SHIFT_DOWN_MASK) > 0,
-                    (e.getModifiersEx() & MouseEvent.CTRL_DOWN_MASK) > 0);
+                    (e.getModifiersEx() & MouseEvent.SHIFT_DOWN_MASK) != 0,
+                    (e.getModifiersEx() & MouseEvent.CTRL_DOWN_MASK) != 0);
         } else if (e.getButton() == MouseEvent.BUTTON1) {
             mousePosStart = mousePos = e.getPoint();
