public final class CloseableLock.Lock extends java.lang.Object implements java.io.Closeable
Closeable implementation that may be used to
unlock a CloseableLock via Java's try-with-resources
facility.| Modifier and Type | Method | 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