Index: trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java	(revision 11401)
+++ trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java	(revision 11402)
@@ -98,10 +98,30 @@
 
     public static class Multipolygon {
-        public Way outerWay;
-        public List<Way> innerWays;
-
+        private final Way outerWay;
+        private final List<Way> innerWays;
+
+        /**
+         * Constructs a new {@code Multipolygon}.
+         * @param way outer way
+         */
         public Multipolygon(Way way) {
             outerWay = way;
             innerWays = new ArrayList<>();
+        }
+
+        /**
+         * Returns the outer way.
+         * @return the outer way
+         */
+        public final Way getOuterWay() {
+            return outerWay;
+        }
+
+        /**
+         * Returns the inner ways.
+         * @return the inner ways
+         */
+        public final List<Way> getInnerWays() {
+            return innerWays;
         }
     }
@@ -1239,5 +1259,5 @@
     /**
      * Joins the lists of ways.
-     * @param polygon The list of outer ways that belong to that multigon.
+     * @param polygon The list of outer ways that belong to that multipolygon.
      * @return The newly created outer way
      * @throws UserCancelException if user cancels the operation
Index: trunk/src/org/openstreetmap/josm/tools/RightAndLefthandTraffic.java
===================================================================
--- trunk/src/org/openstreetmap/josm/tools/RightAndLefthandTraffic.java	(revision 11401)
+++ trunk/src/org/openstreetmap/josm/tools/RightAndLefthandTraffic.java	(revision 11402)
@@ -113,5 +113,5 @@
                 if (result.hasChanges()) {
                     for (Multipolygon mp : result.getPolygons()) {
-                        optimizedWays.add(mp.outerWay);
+                        optimizedWays.add(mp.getOuterWay());
                     }
                 }
