Skip to content

Commit

Permalink
HHH-10366 - Fix checkstyle error
Browse files Browse the repository at this point in the history
  • Loading branch information
dreab8 committed Dec 8, 2015
1 parent c802042 commit b33c6d4
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -71,8 +71,9 @@ public class DefaultLoadEventListener extends AbstractLockUpgradeEventListener i
*
* @throws HibernateException
*/
public void onLoad(final LoadEvent event,
final LoadEventListener.LoadType loadType) throws HibernateException {
public void onLoad(
final LoadEvent event,
final LoadEventListener.LoadType loadType) throws HibernateException {

final EntityPersister persister = getPersister( event );

Expand All @@ -81,8 +82,9 @@ public void onLoad(final LoadEvent event,
}

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 );
}
Expand Down

0 comments on commit b33c6d4

Please sign in to comment.