very minor nitpicks

Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
Gavin King 2024-06-15 10:20:59 +02:00 committed by Steve Ebersole
parent 599cba50bf
commit 6772c3f6b6
1 changed files with 2 additions and 2 deletions

View File

@ -301,7 +301,7 @@ public abstract class EntityType extends AbstractType implements AssociationType
if ( original == null ) { if ( original == null ) {
return null; return null;
} }
Object cached = copyCache.get( original ); final Object cached = copyCache.get( original );
if ( cached != null ) { if ( cached != null ) {
return cached; return cached;
} }
@ -737,7 +737,7 @@ public abstract class EntityType extends AbstractType implements AssociationType
Object key, Object key,
SharedSessionContractImplementor session) throws HibernateException { SharedSessionContractImplementor session) throws HibernateException {
final SessionFactoryImplementor factory = session.getFactory(); final SessionFactoryImplementor factory = session.getFactory();
EntityPersister persister = final EntityPersister persister =
factory.getMappingMetamodel() factory.getMappingMetamodel()
.getEntityDescriptor( entityName ); .getEntityDescriptor( entityName );