Index: /trunk/src/org/openstreetmap/josm/tools/Utils.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/tools/Utils.java	(revision 8996)
+++ /trunk/src/org/openstreetmap/josm/tools/Utils.java	(revision 8997)
@@ -1503,8 +1503,8 @@
      */
     private static class DirectionString {
-        public int direction;
-        public String str;
-
-        public DirectionString(int direction, String str) {
+        public final int direction;
+        public final String str;
+
+        DirectionString(int direction, String str) {
             this.direction = direction;
             this.str = str;
Index: /trunk/test/unit/org/openstreetmap/josm/data/osm/WaySegmentTest.java
===================================================================
--- /trunk/test/unit/org/openstreetmap/josm/data/osm/WaySegmentTest.java	(revision 8996)
+++ /trunk/test/unit/org/openstreetmap/josm/data/osm/WaySegmentTest.java	(revision 8997)
@@ -43,5 +43,5 @@
             throw new IllegalStateException("Expecting IllegalArgumentException");
         } catch (IllegalArgumentException expected) {
-            // expected
+            System.out.println("Expected exception: " + expected.getMessage());
         }
     }
