HHH-10366 - Fix checkstyle error

This commit is contained in:
Andrea Boriero 2015-12-08 18:13:09 +00:00
parent 3f6cc8f8c5
commit e42ca85e9d
1 changed files with 5 additions and 3 deletions

View File

@ -71,8 +71,9 @@ public class DefaultLoadEventListener extends AbstractLockUpgradeEventListener i
* *
* @throws HibernateException * @throws HibernateException
*/ */
public void onLoad(final LoadEvent event, public void onLoad(
final LoadEventListener.LoadType loadType) throws HibernateException { final LoadEvent event,
final LoadEventListener.LoadType loadType) throws HibernateException {
final EntityPersister persister = getPersister( event ); final EntityPersister persister = getPersister( event );
@ -81,8 +82,9 @@ public class DefaultLoadEventListener extends AbstractLockUpgradeEventListener i
} }
final Class idClass = persister.getIdentifierType().getReturnedClass(); final Class idClass = persister.getIdentifierType().getReturnedClass();
if ( idClass != null && !idClass.isInstance( event.getEntityId() ) ) if ( idClass != null && !idClass.isInstance( event.getEntityId() ) ) {
checkIdClass( persister, event, loadType, idClass ); checkIdClass( persister, event, loadType, idClass );
}
doOnLoad( persister, event, loadType ); doOnLoad( persister, event, loadType );
} }