fixed compilation issue: variables referred by anonymous inner class has to be marked as final.

pull/382/head
jackygurui 9 years ago
parent 8418d808a8
commit bbbf16c59a

@ -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