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/18 02:22:33 UTC
groovy git commit: remove deprecated methods
Repository: groovy
Updated Branches:
refs/heads/master 76cf78ea4 -> 6ec88e20f
remove deprecated methods
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/6ec88e20
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/6ec88e20
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/6ec88e20
Branch: refs/heads/master
Commit: 6ec88e20f94d100b73556b7453d0b1e87341add1
Parents: 76cf78e
Author: Paul King <pa...@asert.com.au>
Authored: Fri May 18 12:22:29 2018 +1000
Committer: Paul King <pa...@asert.com.au>
Committed: Fri May 18 12:22:29 2018 +1000
----------------------------------------------------------------------
.../groovy/tools/FileSystemCompiler.java | 38 --------------------
1 file changed, 38 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/6ec88e20/src/main/java/org/codehaus/groovy/tools/FileSystemCompiler.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/codehaus/groovy/tools/FileSystemCompiler.java b/src/main/java/org/codehaus/groovy/tools/FileSystemCompiler.java
index cd00053..e9fc8b5 100644
--- a/src/main/java/org/codehaus/groovy/tools/FileSystemCompiler.java
+++ b/src/main/java/org/codehaus/groovy/tools/FileSystemCompiler.java
@@ -18,11 +18,8 @@
*/
package org.codehaus.groovy.tools;
-import groovy.lang.DeprecationException;
import groovy.lang.GroovyResourceLoader;
import groovy.lang.GroovySystem;
-import org.apache.commons.cli.HelpFormatter;
-import org.apache.commons.cli.Options;
import org.codehaus.groovy.control.CompilationUnit;
import org.codehaus.groovy.control.CompilerConfiguration;
import org.codehaus.groovy.control.ConfigurationException;
@@ -428,41 +425,6 @@ public class FileSystemCompiler {
}
}
- /** @deprecated use {@link #displayHelp(PrintWriter)} instead */
- @Deprecated
- public static void displayHelp(final Options options) {
- final HelpFormatter formatter = new HelpFormatter();
- formatter.printHelp(80, "groovyc [options] <source-files>", "options:", options, "");
- }
-
- // some methods to avoid binary incompatibility - don't gain us a lot but gives the user
- // something slightly less cryptic than a NoSuchMethodError or an IncompatibleClassChangeError
- @Deprecated
- public static CompilerConfiguration generateCompilerConfigurationFromOptions(org.apache.commons.cli.CommandLine cli) throws IOException {
- throw new DeprecationException("This method is not supported for Groovy 2.5+. Consider instead using the FileSystemCompiler.CompilationOptions class.");
- }
-
- @Deprecated
- public static String[] generateFileNamesFromOptions(org.apache.commons.cli.CommandLine cli) {
- throw new DeprecationException("This method is not supported for Groovy 2.5+. Consider instead using the FileSystemCompiler.CompilationOptions class.");
- }
-
- @Deprecated
- public static Options createCompilationOptions() {
- throw new DeprecationException("This method is not supported for Groovy 2.5+. Consider instead using the FileSystemCompiler.CompilationOptions class.");
- }
-
- /**
- * Creates a temporary directory in the default temporary directory (as specified by the system
- * property <i>java.io.tmpdir</i>.
- *
- * @deprecated Use {@link DefaultGroovyStaticMethods#createTempDir(java.io.File, String, String)} instead.
- */
- @Deprecated
- public static File createTempDir() throws IOException {
- return DefaultGroovyStaticMethods.createTempDir(null);
- }
-
public static void deleteRecursive(File file) {
if (!file.exists()) {
return;