Index: trunk/src/org/openstreetmap/josm/Main.java
===================================================================
--- trunk/src/org/openstreetmap/josm/Main.java	(revision 10653)
+++ trunk/src/org/openstreetmap/josm/Main.java	(revision 10655)
@@ -1408,5 +1408,5 @@
 
     private static void fireProjectionChanged(Projection oldValue, Projection newValue, Bounds oldBounds) {
-        if (newValue == null ^ oldValue == null
+        if ((newValue == null ^ oldValue == null)
                 || (newValue != null && oldValue != null && !Objects.equals(newValue.toCode(), oldValue.toCode()))) {
             if (Main.map != null) {
Index: trunk/src/org/openstreetmap/josm/data/osm/Storage.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/Storage.java	(revision 10653)
+++ trunk/src/org/openstreetmap/josm/data/osm/Storage.java	(revision 10655)
@@ -275,5 +275,5 @@
      */
     private static int rehash(int h) {
-        return 1103515245*h >> 2;
+        return (1103515245*h) >> 2;
     }
 
Index: trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintSettings.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintSettings.java	(revision 10653)
+++ trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintSettings.java	(revision 10655)
@@ -151,5 +151,5 @@
      */
     public Color getSelectedColor(int alpha) {
-        return new Color(selectedColor.getRGB() & 0x00ffffff | (alpha << 24), true);
+        return new Color((selectedColor.getRGB() & 0x00ffffff) | (alpha << 24), true);
     }
 
@@ -176,5 +176,5 @@
      */
     public Color getRelationSelectedColor(int alpha) {
-        return new Color(relationSelectedColor.getRGB() & 0x00ffffff | (alpha << 24), true);
+        return new Color((relationSelectedColor.getRGB() & 0x00ffffff) | (alpha << 24), true);
     }
 
