isHeldByCurrentThread should return primitive bool
This commit is contained in:
parent
64bbb3a235
commit
80a7943d6a
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue