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