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 5d17e1a commit 338fc44Copy full SHA for 338fc44
1 file changed
src/main/java/org/janelia/saalfeldlab/n5/ChannelLock.java
@@ -16,11 +16,14 @@
16
class ChannelLock implements Closeable {
17
18
private final FileChannel channel;
19
- private final FileLock lock;
+
20
+ //Used to ensure a hard reference exists until we close
21
+ @SuppressWarnings({"unused", "FieldCanBeLocal"})
22
+ private final FileLock unusedHardRef;
23
24
private ChannelLock(final FileChannel channel, final FileLock lock) {
25
this.channel = channel;
- this.lock = lock;
26
+ this.unusedHardRef = lock;
27
}
28
29
public void close() throws IOException {
0 commit comments