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 2020/04/19 04:52:10 UTC
[groovy] 01/02: Trivial refactoring: make constants final
This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a commit to branch GROOVY_3_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 356c3283a31b8cdbe3c5222e39e12b71e149a986
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Apr 18 22:44:22 2020 +0800
Trivial refactoring: make constants final
(cherry picked from commit f3028b394fc9fc35fe239a0bfcdc59cf23f800fc)
---
src/main/java/org/codehaus/groovy/runtime/InvokerHelper.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/codehaus/groovy/runtime/InvokerHelper.java b/src/main/java/org/codehaus/groovy/runtime/InvokerHelper.java
index ef55fb4..64aedd0 100644
--- a/src/main/java/org/codehaus/groovy/runtime/InvokerHelper.java
+++ b/src/main/java/org/codehaus/groovy/runtime/InvokerHelper.java
@@ -801,8 +801,8 @@ public class InvokerHelper {
return argBuf.toString();
}
- private static Set<String> DEFAULT_IMPORT_PKGS = new HashSet<String>();
- private static Set<String> DEFAULT_IMPORT_CLASSES = new HashSet<String>();
+ private static final Set<String> DEFAULT_IMPORT_PKGS = new HashSet<String>();
+ private static final Set<String> DEFAULT_IMPORT_CLASSES = new HashSet<String>();
static {
for (String pkgName : ResolveVisitor.DEFAULT_IMPORTS) {
DEFAULT_IMPORT_PKGS.add(pkgName.substring(0, pkgName.length() - 1));