groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Fix "Synchronization on a non-final field 'constantMetaClassVersioningLock'"
Date Mon, 21 May 2018 09:05:41 GMT
Repository: groovy
Updated Branches:
  refs/heads/master 6a8682aaf -> 434de3dd3


Fix "Synchronization on a non-final field 'constantMetaClassVersioningLock'"


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/434de3dd
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/434de3dd
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/434de3dd

Branch: refs/heads/master
Commit: 434de3dd37d56b5a5dc72a39ea2be7896e00ebf7
Parents: 6a8682a
Author: sunlan <sunlan@apache.org>
Authored: Mon May 21 17:05:35 2018 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Mon May 21 17:05:35 2018 +0800

----------------------------------------------------------------------
 .../codehaus/groovy/runtime/metaclass/DefaultMetaClassInfo.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/434de3dd/src/main/java/org/codehaus/groovy/runtime/metaclass/DefaultMetaClassInfo.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/codehaus/groovy/runtime/metaclass/DefaultMetaClassInfo.java
b/src/main/java/org/codehaus/groovy/runtime/metaclass/DefaultMetaClassInfo.java
index 91948fe..97c8990 100644
--- a/src/main/java/org/codehaus/groovy/runtime/metaclass/DefaultMetaClassInfo.java
+++ b/src/main/java/org/codehaus/groovy/runtime/metaclass/DefaultMetaClassInfo.java
@@ -329,7 +329,7 @@ public class DefaultMetaClassInfo {
         public boolean isValid(){return valid;}
     }
     private static ConstantMetaClassVersioning constantMetaClassVersioning = new ConstantMetaClassVersioning();
-    private static Object constantMetaClassVersioningLock = new Object();
+    private static final Object constantMetaClassVersioningLock = new Object();
     
     public static ConstantMetaClassVersioning getCurrentConstantMetaClassVersioning() {
         return constantMetaClassVersioning;


Mime
View raw message