isHeldByCurrentThread should return primitive bool

This commit is contained in:
Nhat Nguyen 2018-01-22 08:49:08 -05:00
parent 64bbb3a235
commit 80a7943d6a
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ public class ReleasableLock implements Releasable {
return true;
}
public Boolean isHeldByCurrentThread() {
public boolean isHeldByCurrentThread() {
if (holdingThreads == null) {
throw new UnsupportedOperationException("asserts must be enabled");
}