diff --git a/core/src/main/java/org/hibernate/action/CollectionAction.java b/core/src/main/java/org/hibernate/action/CollectionAction.java index 9f57cc54e1..e8dbca63d8 100644 --- a/core/src/main/java/org/hibernate/action/CollectionAction.java +++ b/core/src/main/java/org/hibernate/action/CollectionAction.java @@ -65,7 +65,7 @@ public abstract class CollectionAction implements Executable, Serializable, Comp return collection; } - protected void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { + private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException { ois.defaultReadObject(); persister = session.getFactory().getCollectionPersister( collectionRole ); }