mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Implement previously unsupported methods in DelegateLock
This commit is contained in:
parent
6faa93f3d4
commit
600a1a5daa
@ -73,12 +73,12 @@ public class DelegateLock extends ReentrantLockWithGetOwner {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized int getHoldCount() {
|
public synchronized int getHoldCount() {
|
||||||
throw new UnsupportedOperationException();
|
return parent.getHoldCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized boolean isHeldByCurrentThread() {
|
public synchronized boolean isHeldByCurrentThread() {
|
||||||
throw new UnsupportedOperationException();
|
return parent.isHeldByCurrentThread();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -96,12 +96,12 @@ public class DelegateLock extends ReentrantLockWithGetOwner {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized boolean hasWaiters(Condition condition) {
|
public synchronized boolean hasWaiters(Condition condition) {
|
||||||
throw new UnsupportedOperationException();
|
return parent.hasWaiters(condition);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized int getWaitQueueLength(Condition condition) {
|
public synchronized int getWaitQueueLength(Condition condition) {
|
||||||
throw new UnsupportedOperationException();
|
return parent.getWaitQueueLength(condition);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user