Merge pull request #10138 from tjrbrom/patch-1

Pass unused "millis" argument to lock.tryLock method, line 76.
This commit is contained in:
Loredana Crusoveanu 2020-10-16 19:19:11 +03:00 committed by GitHub
commit 7c07677faa
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ public class LivelockExample {
public void tryLock(Lock lock, long millis) {
try {
lock.tryLock(10, TimeUnit.MILLISECONDS);
lock.tryLock(millis, TimeUnit.MILLISECONDS);
} catch (InterruptedException e) {
e.printStackTrace();
}