checkstyle MutableException

checkstyle EmptyBlock

checkstyle fixRightCurly Script

checkstyle EmptyStatement

checkstyle RightCurly

checkstyle TailingWhite

checkstyle NeedBraces

Fix the line separator in the `fixRightCurly.gradle`
This commit is contained in:
Gary Russell
2016-04-05 09:44:19 -04:00
committed by Artem Bilan
parent c0b19e61b5
commit 842aded9a4
271 changed files with 1094 additions and 821 deletions

View File

@@ -427,7 +427,8 @@ public final class RedisLockRegistry implements LockRegistry {
});
} finally {
}
finally {
if (!success) {
this.lockedAt = 0;
@@ -486,7 +487,8 @@ public final class RedisLockRegistry implements LockRegistry {
if (logger.isDebugEnabled()) {
logger.debug("Released lock; " + this.toString());
}
} finally {
}
finally {
this.thread = null;
this.reLock = 0;
toWeakThreadStorage(this);

View File

@@ -232,7 +232,9 @@ public class RedisQueueMessageDrivenEndpointTests extends RedisAvailableTests {
redisTemplate.setValueSerializer(new JdkSerializationRedisSerializer());
redisTemplate.afterPropertiesSet();
while (redisTemplate.boundListOps(queueName).rightPop() != null) {}
while (redisTemplate.boundListOps(queueName).rightPop() != null) {
// drain
}
RedisQueueMessageDrivenEndpoint endpoint = new RedisQueueMessageDrivenEndpoint(queueName,
this.connectionFactory);

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -108,7 +108,7 @@ public class RedisAvailableTests {
private void drain(QueueChannel channel) {
while (channel.receive(0) != null) {
;
// drain
}
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2015 the original author or authors.
* Copyright 2014-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -119,7 +119,7 @@ public class RedisLockRegistryTests extends RedisAvailableTests {
assertSame(lock1, lock2);
lock2.lock();
try {
// just get the lock
}
finally {
lock2.unlock();
@@ -144,7 +144,7 @@ public class RedisLockRegistryTests extends RedisAvailableTests {
assertSame(lock1, lock2);
lock2.lockInterruptibly();
try {
// just get the lock
}
finally {
lock2.unlock();
@@ -169,7 +169,7 @@ public class RedisLockRegistryTests extends RedisAvailableTests {
assertNotSame(lock1, lock2);
lock2.lockInterruptibly();
try {
// just get the lock
}
finally {
lock2.unlock();