HHH-10366 - Fix checkstyle error
This commit is contained in:
parent
3f6cc8f8c5
commit
e42ca85e9d
|
@ -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