Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-03 01:50:07 +01:00
Implement previously unsupported methods in DelegateLock
Dieser Commit ist enthalten in:
Ursprung
6faa93f3d4
Commit
600a1a5daa
@ -73,12 +73,12 @@ public class DelegateLock extends ReentrantLockWithGetOwner {
|
||||
|
||||
@Override
|
||||
public synchronized int getHoldCount() {
|
||||
throw new UnsupportedOperationException();
|
||||
return parent.getHoldCount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized boolean isHeldByCurrentThread() {
|
||||
throw new UnsupportedOperationException();
|
||||
return parent.isHeldByCurrentThread();
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -96,12 +96,12 @@ public class DelegateLock extends ReentrantLockWithGetOwner {
|
||||
|
||||
@Override
|
||||
public synchronized boolean hasWaiters(Condition condition) {
|
||||
throw new UnsupportedOperationException();
|
||||
return parent.hasWaiters(condition);
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized int getWaitQueueLength(Condition condition) {
|
||||
throw new UnsupportedOperationException();
|
||||
return parent.getWaitQueueLength(condition);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren