You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by gi...@apache.org on 2017/11/10 18:04:39 UTC

[2/6] ant-ivy git commit: FindBugs: make currentLockHolders final

FindBugs: make currentLockHolders final

Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/1f3dd9ff
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/1f3dd9ff
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/1f3dd9ff

Branch: refs/heads/master
Commit: 1f3dd9ff8a4f8302eb4c0bf4072d2bb7d8aeddd9
Parents: c947676
Author: Gintas Grigelionis <gi...@apache.org>
Authored: Fri Nov 10 19:00:17 2017 +0100
Committer: Gintas Grigelionis <gi...@apache.org>
Committed: Fri Nov 10 19:00:17 2017 +0100

----------------------------------------------------------------------
 src/java/org/apache/ivy/plugins/lock/FileBasedLockStrategy.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/1f3dd9ff/src/java/org/apache/ivy/plugins/lock/FileBasedLockStrategy.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/ivy/plugins/lock/FileBasedLockStrategy.java b/src/java/org/apache/ivy/plugins/lock/FileBasedLockStrategy.java
index 2e31b2f..7c6767d 100644
--- a/src/java/org/apache/ivy/plugins/lock/FileBasedLockStrategy.java
+++ b/src/java/org/apache/ivy/plugins/lock/FileBasedLockStrategy.java
@@ -42,7 +42,7 @@ public abstract class FileBasedLockStrategy extends AbstractLockStrategy {
      * Lock counter list must be static: locks are implicitly shared to the entire process, so the
      * list too much be.
      */
-    private static ConcurrentMap<File, ConcurrentMap<Thread, Integer>> currentLockHolders = new ConcurrentHashMap<>();
+    private static final ConcurrentMap<File, ConcurrentMap<Thread, Integer>> currentLockHolders = new ConcurrentHashMap<>();
 
     protected FileBasedLockStrategy() {
         this(new CreateFileLocker(false), false);