File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
hibernate-core/src/main/java/org/hibernate/engine/internal Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 2020import java .lang .reflect .InvocationTargetException ;
2121import java .util .IdentityHashMap ;
2222import java .util .Map ;
23- import java .util .Objects ;
2423import java .util .function .Consumer ;
2524
2625import static org .hibernate .engine .internal .ManagedTypeHelper .asManagedEntity ;
@@ -453,7 +452,7 @@ public void serialize(ObjectOutputStream oos) throws IOException {
453452 oos .writeBoolean ( managedEntity == instance );
454453 oos .writeObject ( instance );
455454 // we need to know which implementation of EntityEntry is being serialized
456- final var entry = Objects . requireNonNull ( managedEntity .$$_hibernate_getEntityEntry () );
455+ final var entry = managedEntity .$$_hibernate_getEntityEntry ();
457456 oos .writeInt ( entry .getClass ().getName ().length () );
458457 oos .writeChars ( entry .getClass ().getName () );
459458 entry .serialize ( oos );
You can’t perform that action at this time.
0 commit comments