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 d80cc86420 Trivial refactoring: replace argument with empty array
d80cc86420 is described below
commit d80cc864203b781e8c6597506ac0fd8472ee196e
Author: Daniel Sun <[email protected]>
AuthorDate: Mon Jan 20 01:02:21 2025 +0900
Trivial refactoring: replace argument with empty array
---
src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
index ee54727ab0..ff8115e060 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -133,7 +133,7 @@ public class CompilerConfiguration {
/**
* The valid targetBytecode values.
*/
- public static final String[] ALLOWED_JDKS =
JDK_TO_BYTECODE_VERSION_MAP.keySet().toArray(new
String[JDK_TO_BYTECODE_VERSION_MAP.size()]);
+ public static final String[] ALLOWED_JDKS =
JDK_TO_BYTECODE_VERSION_MAP.keySet().toArray(new String[0]);
/**
* The ASM API version used when loading/parsing classes and generating
proxy adapter classes.