Skip to content

Commit e3b444e

Browse files
gsmetgunnarmorling
authored andcommitted
HV-1480 Copy the hashCode in the copy constructor
1 parent d3672d3 commit e3b444e

File tree

1 file changed

+1
-0
lines changed
  • engine/src/main/java/org/hibernate/validator/internal/engine/path

1 file changed

+1
-0
lines changed

engine/src/main/java/org/hibernate/validator/internal/engine/path/PathImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ private int buildHashCode() {
313313
private PathImpl(PathImpl path) {
314314
this( path.nodeList );
315315
currentLeafNode = (NodeImpl) nodeList.get( nodeList.size() - 1 );
316+
hashCode = path.hashCode;
316317
}
317318

318319
private PathImpl() {

0 commit comments

Comments
 (0)