Skip to content

Commit

Permalink
HV-1480 Even if not strictly necessary, the leaf node should be
Browse files Browse the repository at this point in the history
correctly set in all constructors
  • Loading branch information
gsmet authored and gunnarmorling committed Oct 18, 2017
1 parent 4b8189a commit 985ad8e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -353,7 +353,6 @@ private int buildHashCode() {
*/
private PathImpl(PathImpl path) {
this( path.nodeList );
currentLeafNode = (NodeImpl) nodeList.get( nodeList.size() - 1 );
hashCode = path.hashCode;
}

Expand All @@ -365,6 +364,7 @@ private PathImpl() {

private PathImpl(List<Node> nodeList) {
this.nodeList = nodeList;
currentLeafNode = (NodeImpl) nodeList.get( nodeList.size() - 1 );
hashCode = -1;
nodeListRequiresCopy = true;
}
Expand Down

0 comments on commit 985ad8e

Please sign in to comment.