Skip to content

Commit

Permalink
fix a few warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stoecker committed May 30, 2023
1 parent fd0b2cb commit 9dcd304
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public enum RelativeWayJoinOrientation {
* <p>Here's a typical configuration:</p>
* <pre>
* to1 to2
* -------------> o -------------->
* -------------&gt; o --------------&lt;
* ^
* | from
* |
Expand Down Expand Up @@ -346,9 +346,9 @@ protected Relation initNoUTurnRestriction(List<OsmPrimitive> primitives) {
*/
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;
}
Expand Down

0 comments on commit 9dcd304

Please sign in to comment.