From 1b7ef72efc628e3f3327ae1e055dcfd22ba60757 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Thu, 1 Aug 2024 17:13:12 +0200 Subject: [PATCH] final channel --- core/src/main/java/org/bitcoinj/store/SPVBlockStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/bitcoinj/store/SPVBlockStore.java b/core/src/main/java/org/bitcoinj/store/SPVBlockStore.java index f94c82b7215..c583c2708ac 100644 --- a/core/src/main/java/org/bitcoinj/store/SPVBlockStore.java +++ b/core/src/main/java/org/bitcoinj/store/SPVBlockStore.java @@ -97,7 +97,7 @@ protected boolean removeEldestEntry(Map.Entry entry) { // Used to stop other applications/processes from opening the store. protected FileLock fileLock = null; protected RandomAccessFile randomAccessFile = null; - private FileChannel channel; + private final FileChannel channel; private int fileLength; /**