Repository: groovy
Updated Branches:
  refs/heads/master c01db1539 -> 25a414f82


remove unused deprecated constant


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/25a414f8
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/25a414f8
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/25a414f8

Branch: refs/heads/master
Commit: 25a414f8232eb7092869baab4ee5645dc17f39fc
Parents: c01db15
Author: Paul King <pa...@asert.com.au>
Authored: Fri May 18 09:38:26 2018 +1000
Committer: Paul King <pa...@asert.com.au>
Committed: Fri May 18 09:40:31 2018 +1000

----------------------------------------------------------------------
 .../org/codehaus/groovy/control/CompilerConfiguration.java    | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/25a414f8/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java 
b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
index 53207c4..545cc49 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -82,9 +82,6 @@ public class CompilerConfiguration {
     /** An array of the valid targetBytecode values **/
     public static final String[] ALLOWED_JDKS = 
JDK_TO_BYTECODE_VERSION_MAP.keySet().toArray(new String[0]);
 
-    // Just call getVMVersion() once.
-    public static final String CURRENT_JVM_VERSION = getVMVersion();
-
     private static final String GROOVY_ANTLR4_OPT = "groovy.antlr4";
 
     /**
@@ -229,7 +226,7 @@ public class CompilerConfiguration {
         setScriptBaseClass(null);
         setRecompileGroovySource(false);
         setMinimumRecompilationInterval(100);
-        setTargetBytecode(getSystemPropertySafe("groovy.target.bytecode", 
getVMVersion()));
+        setTargetBytecode(getSystemPropertySafe("groovy.target.bytecode", 
getMinBytecodeVersion()));
         
setDefaultScriptExtension(getSystemPropertySafe("groovy.default.scriptExtension",
 ".groovy"));
 
         // Source file encoding
@@ -777,7 +774,7 @@ public class CompilerConfiguration {
         return this.targetBytecode;
     }
 
-    private static String getVMVersion() {
+    private static String getMinBytecodeVersion() {
         return JDK8;
     }
 

Reply via email to