public final class CloseableReadWriteLock.ReadLock extends java.lang.Object implements java.io.Closeable
Closeable implementation that may be used to
unlock a CloseableReadWriteLock's read lock via Java's
try-with-resources facility.| Modifier and Type | Method and Description |
|---|---|
void |
avoidCompilerWarning()
This method does nothing.
|
void |
close()
Unlocks the associated lock.
|
public void avoidCompilerWarning()
Closeable object inside the try block.public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseable