Skip to content

Commit 6417a46

Browse files
committed
HHH-9695 - Fix merge conflicts and checkStyle failure
1 parent ccc8340 commit 6417a46

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/InfinispanRegionFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ private void startRegion(BaseRegion region, String regionName) {
457457

458458
private Map<String, TypeOverrides> initGenericDataTypeOverrides() {
459459
final TypeOverrides entityOverrides = new TypeOverrides();
460-
entityOverrides.setCacheName(DEF_ENTITY_RESOURCE);
460+
entityOverrides.setCacheName( DEF_ENTITY_RESOURCE );
461461
typeOverrides.put( ENTITY_KEY, entityOverrides );
462462
final TypeOverrides immutableEntityOverrides = new TypeOverrides();
463463
immutableEntityOverrides.setCacheName( DEF_IMMUTABLE_ENTITY_RESOURCE );

hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/access/TransactionalAccessDelegate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public void removeAll() throws CacheException {
205205
if ( !putValidator.invalidateRegion() ) {
206206
throw new CacheException( "Failed to invalidate pending putFromLoad calls for region " + region.getName() );
207207
}
208-
Caches.removeAll(cache);
208+
Caches.removeAll( cache );
209209
}
210210

211211
/**

hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/entity/EntityRegionImpl.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ public EntityRegionAccessStrategy buildAccessStrategy(AccessType accessType) thr
4646
case READ_ONLY:
4747
return new ReadOnlyAccess( this );
4848
case TRANSACTIONAL:
49-
if (getCacheDataDescription().isMutable()) {
50-
return new TransactionalAccess(this);
51-
} else {
52-
return new ReadOnlyAccess(this);
49+
if ( getCacheDataDescription().isMutable() ) {
50+
return new TransactionalAccess( this );
51+
}
52+
else {
53+
return new ReadOnlyAccess( this );
5354
}
5455
default:
5556
throw new CacheException( "Unsupported access type [" + accessType.getExternalName() + "]" );

hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/impl/BaseRegion.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,22 +153,22 @@ public boolean checkValid() {
153153
// (without forcing autoCommit cache configuration).
154154
Transaction tx = getCurrentTransaction();
155155
if ( tx != null ) {
156-
log.tracef("Transaction, clearing one element at the time");
157-
Caches.removeAll(localAndSkipLoadCache);
156+
log.tracef( "Transaction, clearing one element at the time" );
157+
Caches.removeAll( localAndSkipLoadCache );
158158
}
159159
else {
160-
log.tracef("Non-transactional, clear in one go");
160+
log.tracef( "Non-transactional, clear in one go" );
161161
localAndSkipLoadCache.clear();
162162
}
163163

164-
log.tracef("Transition state from CLEARING to VALID");
164+
log.tracef( "Transition state from CLEARING to VALID" );
165165
invalidateState.compareAndSet(
166166
InvalidateState.CLEARING, InvalidateState.VALID
167167
);
168168
}
169169
catch ( Exception e ) {
170170
if ( log.isTraceEnabled() ) {
171-
log.trace("Could not invalidate region: ", e);
171+
log.trace( "Could not invalidate region: ", e );
172172
}
173173
}
174174
}
@@ -223,7 +223,7 @@ public void resume(Transaction tx) {
223223
*/
224224
public void invalidateRegion() {
225225
if (log.isTraceEnabled()) {
226-
log.trace("Invalidate region: " + name);
226+
log.trace( "Invalidate region: " + name );
227227
}
228228

229229
Transaction tx = getCurrentTransaction();
@@ -254,7 +254,7 @@ public AdvancedCache getCache() {
254254

255255
public boolean isRegionInvalidatedInCurrentTx() {
256256
Transaction tx = getCurrentTransaction();
257-
return tx != null && tx.equals(invalidateTransaction);
257+
return tx != null && tx.equals( invalidateTransaction );
258258
}
259259

260260
private Transaction getCurrentTransaction() {

hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/util/Caches.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ public static void removeAll(AdvancedCache cache) {
254254
CloseableIterator it = cache.keySet().iterator();
255255
try {
256256
while (it.hasNext()) {
257-
it.next(); // Necessary to get next element
257+
// Necessary to get next element
258+
it.next();
258259
it.remove();
259260
}
260261
}

0 commit comments

Comments
 (0)