We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe9cb6e commit 444366fCopy full SHA for 444366f
1 file changed
src/main/java/org/janelia/saalfeldlab/n5/ChannelLock.java
@@ -15,11 +15,14 @@
15
class ChannelLock implements Closeable {
16
17
private final FileChannel channel;
18
- private final FileLock lock;
+
19
+ //Used to ensure a hard reference exists until we close
20
+ @SuppressWarnings({"unused", "FieldCanBeLocal"})
21
+ private final FileLock unusedHardRef;
22
23
private ChannelLock(final FileChannel channel, final FileLock lock) {
24
this.channel = channel;
- this.lock = lock;
25
+ this.unusedHardRef = lock;
26
}
27
28
public void close() throws IOException {
0 commit comments