[groovy] branch master 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 master 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 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 0cc2bd6  GROOVY-9100: add missing methods
0cc2bd6 is described below

commit 0cc2bd61f5b830aa187f7dd57edb718206e98d2a
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 dd1260c..44f8bdb 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -269,6 +269,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();
         }
@@ -853,17 +863,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;
     }
 
     /**