From 6ccde14d24073614584377fbb11dd07f8823d66e Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Wed, 26 Feb 2014 01:45:46 +0000 Subject: [PATCH] HHH-8878 Remove some dead code --- .../org/hibernate/engine/spi/EntityKey.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/engine/spi/EntityKey.java b/hibernate-core/src/main/java/org/hibernate/engine/spi/EntityKey.java index 8dd0aec44c..fd811acb9d 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/spi/EntityKey.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/spi/EntityKey.java @@ -71,24 +71,6 @@ public final class EntityKey implements Serializable { this.hashCode = generateHashCode(); } - /** - * Used to reconstruct an EntityKey during deserialization. Note that this constructor - * is used only in very specific situations: the SessionFactory isn't actually available - * and so both equals and hashcode implementations can't be implemented correctly. - * - * @param identifier The identifier value - * @param persister The EntityPersister - * @param hashCode The hashCode needs to be provided as it can't be calculated correctly without the SessionFactory. - */ - private EntityKey(Serializable identifier, EntityPersister persister, int hashCode) { - this.persister = persister; - if ( identifier == null ) { - throw new AssertionFailure( "null identifier" ); - } - this.identifier = identifier; - this.hashCode = hashCode; - } - private int generateHashCode() { int result = 17; result = 37 * result + persister.getIdentifierType().getHashCode( identifier, persister.getFactory() );