Index: applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/DefaultMapController.java
===================================================================
--- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/DefaultMapController.java	(revision 32723)
+++ applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/DefaultMapController.java	(revision 32724)
@@ -37,4 +37,8 @@
     private boolean doubleClickZoomEnabled = true;
 
+    /**
+     * Constructs a new {@code DefaultMapController}.
+     * @param map map panel
+     */
     public DefaultMapController(JMapViewer map) {
         super(map);
@@ -47,5 +51,5 @@
         // Is only the selected mouse button pressed?
         if ((e.getModifiersEx() & MOUSE_BUTTONS_MASK) == movementMouseButtonMask
-                || isPlatformOsx() && e.getModifiersEx() == MAC_MOUSE_BUTTON3_MASK) {
+                || (isPlatformOsx() && e.getModifiersEx() == MAC_MOUSE_BUTTON3_MASK)) {
             Point p = e.getPoint();
             if (lastDragPoint != null) {
@@ -67,5 +71,5 @@
     @Override
     public void mousePressed(MouseEvent e) {
-        if (e.getButton() == movementMouseButton || isPlatformOsx() && e.getModifiersEx() == MAC_MOUSE_BUTTON3_MASK) {
+        if (e.getButton() == movementMouseButton || (isPlatformOsx() && e.getModifiersEx() == MAC_MOUSE_BUTTON3_MASK)) {
             lastDragPoint = null;
             isMoving = true;
@@ -75,5 +79,5 @@
     @Override
     public void mouseReleased(MouseEvent e) {
-        if (e.getButton() == movementMouseButton || isPlatformOsx() && e.getButton() == MouseEvent.BUTTON1) {
+        if (e.getButton() == movementMouseButton || (isPlatformOsx() && e.getButton() == MouseEvent.BUTTON1)) {
             lastDragPoint = null;
             isMoving = false;
@@ -89,4 +93,8 @@
     }
 
+    /**
+     * Determines if the map pane is allowed to be moved using the mouse
+     * @return {@code true} to allow the map pane to be moved using the mouse
+     */
     public boolean isMovementEnabled() {
         return movementEnabled;
@@ -151,8 +159,10 @@
     @Override
     public void mouseEntered(MouseEvent e) {
+        // do nothing
     }
 
     @Override
     public void mouseExited(MouseEvent e) {
+        // do nothing
     }
 
@@ -174,7 +184,5 @@
                 lastDragPoint = p;
             }
-
         }
-
     }
 
