This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch camel-4.14.x in repository https://gitbox.apache.org/repos/asf/camel.git
commit 95bc0d5c9d076ba0d4543583608b8e496782e960 Author: Pasquale Congiusti <[email protected]> AuthorDate: Wed Oct 15 10:38:05 2025 +0200 chore(core): add final lock var Co-authored-by: James Netherton <[email protected]> --- .../org/apache/camel/component/file/cluster/FileLockClusterView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-file/src/main/java/org/apache/camel/component/file/cluster/FileLockClusterView.java b/components/camel-file/src/main/java/org/apache/camel/component/file/cluster/FileLockClusterView.java index a5d8d75e8875..8c6787bfcae8 100644 --- a/components/camel-file/src/main/java/org/apache/camel/component/file/cluster/FileLockClusterView.java +++ b/components/camel-file/src/main/java/org/apache/camel/component/file/cluster/FileLockClusterView.java @@ -44,7 +44,7 @@ public class FileLockClusterView extends AbstractCamelClusterView { // Used only during service startup as each context could try to access it concurrently. // It isolates the critical section making sure only one service creates the files. - private static ReentrantLock contextStartLock = new ReentrantLock(); + private static final ReentrantLock contextStartLock = new ReentrantLock(); private static final Logger LOGGER = LoggerFactory.getLogger(FileLockClusterView.class); private final ClusterMember localMember;
