CheckStyle: Improve formatting of org.hibernate.event.spi.LoadEvent

This commit is contained in:
Sanne Grinovero 2014-02-24 17:06:04 +00:00
parent 5fa642ff72
commit 1be3e2407c
1 changed files with 9 additions and 9 deletions

View File

@ -64,19 +64,19 @@ public class LoadEvent extends AbstractEvent {
private Object result; private Object result;
public LoadEvent(Serializable entityId, Object instanceToLoad, EventSource source) { public LoadEvent(Serializable entityId, Object instanceToLoad, EventSource source) {
this(entityId, null, instanceToLoad, DEFAULT_LOCK_OPTIONS, false, source); this( entityId, null, instanceToLoad, DEFAULT_LOCK_OPTIONS, false, source );
} }
public LoadEvent(Serializable entityId, String entityClassName, LockMode lockMode, EventSource source) { public LoadEvent(Serializable entityId, String entityClassName, LockMode lockMode, EventSource source) {
this(entityId, entityClassName, null, lockMode, false, source); this( entityId, entityClassName, null, lockMode, false, source );
} }
public LoadEvent(Serializable entityId, String entityClassName, LockOptions lockOptions, EventSource source) { public LoadEvent(Serializable entityId, String entityClassName, LockOptions lockOptions, EventSource source) {
this(entityId, entityClassName, null, lockOptions, false, source); this( entityId, entityClassName, null, lockOptions, false, source );
} }
public LoadEvent(Serializable entityId, String entityClassName, boolean isAssociationFetch, EventSource source) { public LoadEvent(Serializable entityId, String entityClassName, boolean isAssociationFetch, EventSource source) {
this(entityId, entityClassName, null, DEFAULT_LOCK_OPTIONS, isAssociationFetch, source); this( entityId, entityClassName, null, DEFAULT_LOCK_OPTIONS, isAssociationFetch, source );
} }
public boolean isAssociationFetch() { public boolean isAssociationFetch() {
@ -90,8 +90,8 @@ public class LoadEvent extends AbstractEvent {
LockMode lockMode, LockMode lockMode,
boolean isAssociationFetch, boolean isAssociationFetch,
EventSource source) { EventSource source) {
this(entityId, entityClassName, instanceToLoad, this( entityId, entityClassName, instanceToLoad,
lockMode == DEFAULT_LOCK_MODE ? DEFAULT_LOCK_OPTIONS : new LockOptions().setLockMode(lockMode), lockMode == DEFAULT_LOCK_MODE ? DEFAULT_LOCK_OPTIONS : new LockOptions().setLockMode( lockMode ),
isAssociationFetch, source ); isAssociationFetch, source );
} }
@ -158,7 +158,7 @@ public class LoadEvent extends AbstractEvent {
public void setLockMode(LockMode lockMode) { public void setLockMode(LockMode lockMode) {
if ( lockMode != lockOptions.getLockMode() ) { if ( lockMode != lockOptions.getLockMode() ) {
writingOnLockOptions(); writingOnLockOptions();
this.lockOptions.setLockMode(lockMode); this.lockOptions.setLockMode( lockMode );
} }
} }
@ -171,7 +171,7 @@ public class LoadEvent extends AbstractEvent {
public void setLockTimeout(int timeout) { public void setLockTimeout(int timeout) {
if ( timeout != lockOptions.getTimeOut() ) { if ( timeout != lockOptions.getTimeOut() ) {
writingOnLockOptions(); writingOnLockOptions();
this.lockOptions.setTimeOut(timeout); this.lockOptions.setTimeOut( timeout );
} }
} }
@ -182,7 +182,7 @@ public class LoadEvent extends AbstractEvent {
public void setLockScope(boolean cascade) { public void setLockScope(boolean cascade) {
if ( lockOptions.getScope() != cascade ) { if ( lockOptions.getScope() != cascade ) {
writingOnLockOptions(); writingOnLockOptions();
this.lockOptions.setScope(cascade); this.lockOptions.setScope( cascade );
} }
} }