[groovy] branch GROOVY_2_5_X updated: GROOVY-9100: add missing methods

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[groovy] branch GROOVY_2_5_X updated: GROOVY-9100: add missing methods

paulk
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch GROOVY_2_5_X
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY_2_5_X by this push:
     new 5e70a13  GROOVY-9100: add missing methods
5e70a13 is described below

commit 5e70a132071d4a98f4bc43099de3218049623d53
Author: Paul King <[hidden email]>
AuthorDate: Thu May 16 11:31:06 2019 +1000

    GROOVY-9100: add missing methods
---
 .../groovy/control/CompilerConfiguration.java      | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
index 2865e64..a9fde95 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -261,6 +261,16 @@ public class CompilerConfiguration {
         }
 
         @Override
+        public void setParserVersion(ParserVersion parserVersion) {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
+        public void setPreviewFeatures(boolean previewFeatures) {
+            throw new UnsupportedOperationException();
+        }
+
+        @Override
         public void setWarningLevel(int level) {
             throw new UnsupportedOperationException();
         }
@@ -805,17 +815,17 @@ public class CompilerConfiguration {
     }
 
     /**
-     * Returns true if parameter metadata generation has been enabled.
+     * Turns debugging operation on or off.
      */
-    public boolean getParameters() {
-        return this.parameters;
+    public void setDebug(boolean debug) {
+        this.debug = debug;
     }
 
     /**
-     * Turns debugging operation on or off.
+     * Returns true if parameter metadata generation has been enabled.
      */
-    public void setDebug(boolean debug) {
-        this.debug = debug;
+    public boolean getParameters() {
+        return this.parameters;
     }
 
     /**