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/18 14:45:37 UTC
[groovy] branch master updated: Trivial refactoring: make constants
final
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 f3028b3 Trivial refactoring: make constants final
f3028b3 is described below
commit f3028b394fc9fc35fe239a0bfcdc59cf23f800fc
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Apr 18 22:44:22 2020 +0800
Trivial refactoring: make constants final
---
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));