Skip to content

Commit

Permalink
fixed compilation issue: variables referred by anonymous inner class …
Browse files Browse the repository at this point in the history
…has to be marked as final.
  • Loading branch information
jackygurui committed Jan 26, 2016
1 parent 8418d80 commit bbbf16c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/redisson/core/RedissonMultiLock.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public Promise<Void> setFailure(Throwable cause) {
}
}

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());

Expand Down

0 comments on commit bbbf16c

Please sign in to comment.