Index: /applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/datastructure/OSMRelation.java
===================================================================
--- /applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/datastructure/OSMRelation.java	(revision 32691)
+++ /applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/datastructure/OSMRelation.java	(revision 32692)
@@ -42,6 +42,6 @@
     public String toString() {
         String s = ("Relation-ID: " + this.getId() + " Relation-Type: " + this.getRelationType("type") +"\n");
-        for (int i = 0; i < members.size(); i++) {
-            s += ("Member: " + members.get(i).getRole() + ", ref:" + members.get(i).getId() + ", type:" + members.get(i).getType().getClass().getName());
+        for (Member member : members) {
+            s += member.toString();
         }
         return s;
@@ -86,4 +86,9 @@
             return role;
         }
+
+        @Override
+        public String toString() {
+            return "Member: " + getRole() + ", ref:" + getId() + ", type:" + getType().getName();
+        }
     }
 }
Index: /applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/reader/OSMXMLReader.java
===================================================================
--- /applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/reader/OSMXMLReader.java	(revision 32691)
+++ /applications/editors/josm/plugins/junctionchecking/src/org/openstreetmap/josm/plugins/JunctionChecker/reader/OSMXMLReader.java	(revision 32692)
@@ -156,10 +156,10 @@
 
                 case XMLStreamConstants.END_ELEMENT:
-                    if (parser.getLocalName() == "node") {
+                    if (parser.getLocalName().equals("node")) {
                         node.setHashmap(hashmap);
                         osmgraph.addNode(node);
                     }
 
-                    if (parser.getLocalName() == "way") {
+                    if (parser.getLocalName().equals("way")) {
                         way.setHashmap(hashmap);
                         osmgraph.addWay(way);
