You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2022/08/06 08:48:23 UTC

[groovy] branch GROOVY_4_0_X updated: Trivial edit

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

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


The following commit(s) were added to refs/heads/GROOVY_4_0_X by this push:
     new a591de4c88 Trivial edit
a591de4c88 is described below

commit a591de4c88a73152a77844d7b3c1696f5dbd2eee
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Aug 6 16:47:03 2022 +0800

    Trivial edit
    
    (cherry picked from commit 65065665c7c19b8caf9df8e61344e60d06d0a058)
---
 src/main/java/org/apache/groovy/lang/GroovyObjectHelper.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/groovy/lang/GroovyObjectHelper.java b/src/main/java/org/apache/groovy/lang/GroovyObjectHelper.java
index a93a6f16ac..23d53e3373 100644
--- a/src/main/java/org/apache/groovy/lang/GroovyObjectHelper.java
+++ b/src/main/java/org/apache/groovy/lang/GroovyObjectHelper.java
@@ -35,9 +35,6 @@ import java.util.concurrent.atomic.AtomicReference;
  * @since 4.0.0
  */
 public class GroovyObjectHelper {
-    private static final String GET_LOOKUP_METHOD_NAME = "$getLookup";
-    private static final Lookup LOOKUP = MethodHandles.lookup();
-
     /**
      * Get the {@link Lookup} instance of the {@link GroovyObject} instance
      *
@@ -123,6 +120,9 @@ public class GroovyObjectHelper {
     }
 
     private GroovyObjectHelper() {}
+
+    private static final String GET_LOOKUP_METHOD_NAME = "$getLookup";
+    private static final Lookup LOOKUP = MethodHandles.lookup();
     private static final ClassValue<AtomicReference<Lookup>> LOOKUP_MAP = new ClassValue<AtomicReference<Lookup>>() {
         @Override
         protected AtomicReference<Lookup> computeValue(Class<?> type) {