Merge pull request #382 from jackygurui/master

variables referred by anonymous inner class has to be final.
pull/395/head
Nikita Koksharov 9 years ago
commit ef7538843a

@ -109,7 +109,7 @@ public class RedissonMultiLock implements Lock {
}
}
private void lock(final Promise<Void> promise, long waitTime, long leaseTime, TimeUnit unit) throws InterruptedException {
private void lock(final Promise<Void> promise, final long waitTime, final long leaseTime, final TimeUnit unit) throws InterruptedException {
final AtomicInteger tryLockRequestsAmount = new AtomicInteger();
final Map<Future<Boolean>, RLock> tryLockFutures = new HashMap<Future<Boolean>, RLock>(locks.size());

Loading…
Cancel
Save