Skip to content

Commit c668d29

Browse files
Sannesebersole
authored andcommitted
Whitespace and style fixes (only)
(cherry picked from commit 0ba7c607780f5b48fc8958cabd1105e235c3dd61) Conflicts: hibernate-core/src/main/java/org/hibernate/loader/Loader.java hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
1 parent 4605941 commit c668d29

File tree

4 files changed

+247
-253
lines changed

4 files changed

+247
-253
lines changed

hibernate-core/src/main/java/org/hibernate/engine/spi/EntityEntry.java

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private EntityEntry(
109109
final Status status,
110110
final Status previousStatus,
111111
final Object[] loadedState,
112-
final Object[] deletedState,
112+
final Object[] deletedState,
113113
final Object version,
114114
final LockMode lockMode,
115115
final boolean existsInDatabase,
@@ -206,11 +206,11 @@ public String getEntityName() {
206206
public boolean isBeingReplicated() {
207207
return isBeingReplicated;
208208
}
209-
209+
210210
public Object getRowId() {
211211
return rowId;
212212
}
213-
213+
214214
/**
215215
* Handle updating the internal state of the entry after actually performing
216216
* the database update. Specifically we update the snapshot information and
@@ -236,8 +236,8 @@ public void postUpdate(Object entity, Object[] updatedState, Object nextVersion)
236236
interceptor.clearDirty();
237237
}
238238
}
239-
if( entity instanceof SelfDirtinessTracker)
240-
((SelfDirtinessTracker) entity).$$_hibernate_clearDirtyAttributes();
239+
if( entity instanceof SelfDirtinessTracker)
240+
((SelfDirtinessTracker) entity).$$_hibernate_clearDirtyAttributes();
241241

242242
persistenceContext.getSession()
243243
.getFactory()
@@ -254,15 +254,15 @@ public void postDelete() {
254254
status = Status.GONE;
255255
existsInDatabase = false;
256256
}
257-
257+
258258
/**
259259
* After actually inserting a row, record the fact that the instance exists on the
260260
* database (needed for identity-column key generation)
261261
*/
262262
public void postInsert(Object[] insertedState) {
263263
existsInDatabase = true;
264264
}
265-
265+
266266
public boolean isNullifiable(boolean earlyInsert, SessionImplementor session) {
267267
return getStatus() == Status.SAVING || (
268268
earlyInsert ?
@@ -271,7 +271,7 @@ public boolean isNullifiable(boolean earlyInsert, SessionImplementor session) {
271271
.contains( getEntityKey() )
272272
);
273273
}
274-
274+
275275
public Object getLoadedValue(String propertyName) {
276276
if ( loadedState == null ) {
277277
return null;
@@ -303,24 +303,24 @@ public boolean requiresDirtyCheck(Object entity) {
303303
@SuppressWarnings( {"SimplifiableIfStatement"})
304304
private boolean isUnequivocallyNonDirty(Object entity) {
305305

306-
if(entity instanceof SelfDirtinessTracker)
307-
return ((SelfDirtinessTracker) entity).$$_hibernate_hasDirtyAttributes();
306+
if(entity instanceof SelfDirtinessTracker)
307+
return ((SelfDirtinessTracker) entity).$$_hibernate_hasDirtyAttributes();
308308

309309
final CustomEntityDirtinessStrategy customEntityDirtinessStrategy =
310310
persistenceContext.getSession().getFactory().getCustomEntityDirtinessStrategy();
311311
if ( customEntityDirtinessStrategy.canDirtyCheck( entity, getPersister(), (Session) persistenceContext.getSession() ) ) {
312312
return ! customEntityDirtinessStrategy.isDirty( entity, getPersister(), (Session) persistenceContext.getSession() );
313313
}
314-
314+
315315
if ( getPersister().hasMutableProperties() ) {
316316
return false;
317317
}
318-
318+
319319
if ( getPersister().getInstrumentationMetadata().isInstrumented() ) {
320320
// the entity must be instrumented (otherwise we cant check dirty flag) and the dirty flag is false
321321
return ! getPersister().getInstrumentationMetadata().extractInterceptor( entity ).isDirty();
322322
}
323-
323+
324324
return false;
325325
}
326326

@@ -380,7 +380,7 @@ public void setReadOnly(boolean readOnly, Object entity) {
380380
);
381381
}
382382
}
383-
383+
384384
public String toString() {
385385
return "EntityEntry" +
386386
MessageHelper.infoString(entityName, id) +
@@ -431,27 +431,27 @@ public void serialize(ObjectOutputStream oos) throws IOException {
431431
*/
432432
public static EntityEntry deserialize(
433433
ObjectInputStream ois,
434-
PersistenceContext persistenceContext) throws IOException, ClassNotFoundException {
434+
PersistenceContext persistenceContext) throws IOException, ClassNotFoundException {
435435
String previousStatusString;
436436
return new EntityEntry(
437437
// this complexity comes from non-flushed changes, should really look at how that reattaches entries
438438
( persistenceContext.getSession() == null ? null : persistenceContext.getSession().getFactory() ),
439-
(String) ois.readObject(),
439+
(String) ois.readObject(),
440440
( Serializable ) ois.readObject(),
441-
EntityMode.parse( (String) ois.readObject() ),
441+
EntityMode.parse( (String) ois.readObject() ),
442442
(String) ois.readObject(),
443443
Status.valueOf( (String) ois.readObject() ),
444444
( ( previousStatusString = ( String ) ois.readObject() ).length() == 0 ?
445445
null :
446446
Status.valueOf( previousStatusString )
447447
),
448-
( Object[] ) ois.readObject(),
449-
( Object[] ) ois.readObject(),
450-
ois.readObject(),
451-
LockMode.valueOf( (String) ois.readObject() ),
452-
ois.readBoolean(),
453-
ois.readBoolean(),
454-
ois.readBoolean(),
448+
( Object[] ) ois.readObject(),
449+
( Object[] ) ois.readObject(),
450+
ois.readObject(),
451+
LockMode.valueOf( (String) ois.readObject() ),
452+
ois.readBoolean(),
453+
ois.readBoolean(),
454+
ois.readBoolean(),
455455
persistenceContext
456456
);
457457
}

0 commit comments

Comments
 (0)