You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2018/05/14 09:46:43 UTC
[1/2] groovy git commit: update outdated comments
Repository: groovy
Updated Branches:
refs/heads/GROOVY_2_5_X b8fb3beca -> 8341c825f
update outdated comments
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/2db6e8d4
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/2db6e8d4
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/2db6e8d4
Branch: refs/heads/GROOVY_2_5_X
Commit: 2db6e8d41a85060de9c0fcbf9d8f43ef98b56a37
Parents: b8fb3be
Author: Daniel Sun <re...@hotmail.com>
Authored: Fri May 11 23:17:53 2018 +1000
Committer: Paul King <pa...@asert.com.au>
Committed: Mon May 14 19:43:38 2018 +1000
----------------------------------------------------------------------
.../groovy/control/CompilerConfiguration.java | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/2db6e8d4/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 9f673e3..0fd7460 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -726,11 +726,10 @@ public class CompilerConfiguration {
}
/**
- * Allow setting the bytecode compatibility. The parameter can take
- * one of the values <tt>1.7</tt>, <tt>1.6</tt>, <tt>1.5</tt> or <tt>1.4</tt>.
- * If wrong parameter then the value will default to VM determined version.
- *
- * @param version the bytecode compatibility mode
+ * Allow setting the bytecode compatibility level. The parameter can take
+ * one of the values in {@link #ALLOWED_JDKS}.
+ *
+ * @param version the bytecode compatibility level
*/
public void setTargetBytecode(String version) {
for (String allowedJdk : ALLOWED_JDKS) {
@@ -741,9 +740,11 @@ public class CompilerConfiguration {
}
/**
- * Retrieves the compiler bytecode compatibility mode.
- *
- * @return bytecode compatibility mode. Can be either <tt>1.5</tt> or <tt>1.4</tt>.
+ * Retrieves the compiler bytecode compatibility level.
+ * Defaults to the minimum officially supported bytecode
+ * version for any particular Groovy version.
+ *
+ * @return bytecode compatibility level
*/
public String getTargetBytecode() {
return this.targetBytecode;
[2/2] groovy git commit: update outdated comments
Posted by pa...@apache.org.
update outdated comments
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/8341c825
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/8341c825
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/8341c825
Branch: refs/heads/GROOVY_2_5_X
Commit: 8341c825fa67c71c04d13c872baf315bcc70860b
Parents: 2db6e8d
Author: Daniel Sun <re...@hotmail.com>
Authored: Mon May 14 19:45:59 2018 +1000
Committer: Paul King <pa...@asert.com.au>
Committed: Mon May 14 19:45:59 2018 +1000
----------------------------------------------------------------------
.../src/main/java/org/codehaus/groovy/ant/Groovyc.java | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/8341c825/subprojects/groovy-ant/src/main/java/org/codehaus/groovy/ant/Groovyc.java
----------------------------------------------------------------------
diff --git a/subprojects/groovy-ant/src/main/java/org/codehaus/groovy/ant/Groovyc.java b/subprojects/groovy-ant/src/main/java/org/codehaus/groovy/ant/Groovyc.java
index 5543a32..eae75e3 100644
--- a/subprojects/groovy-ant/src/main/java/org/codehaus/groovy/ant/Groovyc.java
+++ b/subprojects/groovy-ant/src/main/java/org/codehaus/groovy/ant/Groovyc.java
@@ -287,10 +287,10 @@ public class Groovyc extends MatchingTask {
}
/**
- * Sets the bytecode compatibility mode. The parameter can take
- * one of the values <tt>1.8</tt>, <tt>1.7</tt>, <tt>1.6</tt>, <tt>1.5</tt> or <tt>1.4</tt>.
+ * Sets the bytecode compatibility level.
+ * The parameter can take one of the values in {@link CompilerConfiguration#ALLOWED_JDKS}.
*
- * @param version the bytecode compatibility mode
+ * @param version the bytecode compatibility level
*/
public void setTargetBytecode(String version) {
@@ -303,11 +303,9 @@ public class Groovyc extends MatchingTask {
}
/**
- * Retrieves the compiler bytecode compatibility mode.
+ * Retrieves the compiler bytecode compatibility level.
*
- * @return bytecode compatibility mode. Can be one of the values
- * <tt>1.8</tt>, <tt>1.7</tt>, <tt>1.6</tt>, <tt>1.5</tt> or
- * <tt>1.4</tt>.
+ * @return bytecode compatibility level. Can be one of the values in {@link CompilerConfiguration#ALLOWED_JDKS}.
*/
public String getTargetBytecode() {
return this.targetBytecode;