This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new a8e3abc  Trivial refactoring: make field `final`
a8e3abc is described below

commit a8e3abc4ada6b9829b4aafd3e12c5d97d2c27f46
Author: Daniel Sun <[email protected]>
AuthorDate: Thu Nov 19 07:43:06 2020 +0800

    Trivial refactoring: make field `final`
---
 .../java/org/codehaus/groovy/runtime/metaclass/ClosureMetaClass.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/codehaus/groovy/runtime/metaclass/ClosureMetaClass.java 
b/src/main/java/org/codehaus/groovy/runtime/metaclass/ClosureMetaClass.java
index acc49e2..51116bd 100644
--- a/src/main/java/org/codehaus/groovy/runtime/metaclass/ClosureMetaClass.java
+++ b/src/main/java/org/codehaus/groovy/runtime/metaclass/ClosureMetaClass.java
@@ -71,7 +71,7 @@ import java.util.Map;
 public final class ClosureMetaClass extends MetaClassImpl {
     private volatile boolean initialized, attributeInitDone;
     private final FastArray closureMethods = new FastArray(3);
-    private Map<String, CachedField> attributes = new HashMap<>();
+    private final Map<String, CachedField> attributes = new HashMap<>();
     private MethodChooser chooser;
 
     private static MetaClassImpl classMetaClass;

Reply via email to