Skip to content

Commit 0f4886d

Browse files
Sannebrmeyer
authored andcommitted
HHH-8878 Remove some dead code
1 parent 8826c30 commit 0f4886d

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

hibernate-core/src/main/java/org/hibernate/engine/spi/EntityKey.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,6 @@ public EntityKey(Serializable id, EntityPersister persister) {
7171
this.hashCode = generateHashCode();
7272
}
7373

74-
/**
75-
* Used to reconstruct an EntityKey during deserialization. Note that this constructor
76-
* is used only in very specific situations: the SessionFactory isn't actually available
77-
* and so both equals and hashcode implementations can't be implemented correctly.
78-
*
79-
* @param identifier The identifier value
80-
* @param persister The EntityPersister
81-
* @param hashCode The hashCode needs to be provided as it can't be calculated correctly without the SessionFactory.
82-
*/
83-
private EntityKey(Serializable identifier, EntityPersister persister, int hashCode) {
84-
this.persister = persister;
85-
if ( identifier == null ) {
86-
throw new AssertionFailure( "null identifier" );
87-
}
88-
this.identifier = identifier;
89-
this.hashCode = hashCode;
90-
}
91-
9274
private int generateHashCode() {
9375
int result = 17;
9476
result = 37 * result + persister.getIdentifierType().getHashCode( identifier, persister.getFactory() );

0 commit comments

Comments
 (0)