HHH-10366 - Fix checkstyle error

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

View File

@ -71,7 +71,8 @@ public class DefaultLoadEventListener extends AbstractLockUpgradeEventListener i
*
* @throws HibernateException
*/
public void onLoad(final LoadEvent event,
public void onLoad(
final LoadEvent event,
final LoadEventListener.LoadType loadType) throws HibernateException {
final EntityPersister persister = getPersister( event );
@ -81,8 +82,9 @@ public class DefaultLoadEventListener extends AbstractLockUpgradeEventListener i
}
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 );
}
doOnLoad( persister, event, loadType );
}