Index: applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/TurnRestrictionBuilder.java
===================================================================
--- applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/TurnRestrictionBuilder.java	(revision 36089)
+++ applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/TurnRestrictionBuilder.java	(revision 36090)
@@ -176,5 +176,5 @@
      * <pre>
      *          to1             to2
-     *      -------------> o -------------->
+     *      -------------&gt; o --------------&lt;
      *                     ^
      *                     | from
@@ -347,7 +347,7 @@
     public static boolean isConnectingNode(Way w1, Way w2, Node n) {
         if (isStartNode(w1, n)) {
-            return isStartNode(w2, n) | isEndNode(w2, n);
+            return isStartNode(w2, n) || isEndNode(w2, n);
         } else if (isEndNode(w1, n)) {
-            return isStartNode(w2, n) | isEndNode(w2, n);
+            return isStartNode(w2, n) || isEndNode(w2, n);
         }
         return false;
