Skip to content

Commit

Permalink
[jruby] node equality fix
Browse files Browse the repository at this point in the history
closes #1516
  • Loading branch information
flavorjones committed Oct 3, 2016
1 parent e4fd125 commit 119bcb0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ext/java/nokogiri/internals/NokogiriHelpers.java
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,8 @@ protected static String getFullName(Node n) {
}

private static boolean nodesAreEqual(Object a, Object b) {
return (((a == null) && (a == null)) ||
(a != null) && (b != null) &&
(b.equals(a)));
return (((a == null) && (b == null)) ||
((a != null) && (b != null) && (b.equals(a))));
}

private static Pattern encoded_pattern = Pattern.compile("&|>|<|
");
Expand Down

0 comments on commit 119bcb0

Please sign in to comment.