HHH-10366 - Fix checkstyle error
This commit is contained in:
parent
c802042f1a
commit
b33c6d4357
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue