# Deprecated API

## Contents

- Deprecated Interfaces
- Deprecated Classes
- Deprecated Fields
- Deprecated Methods
- Deprecated Constructors

- Deprecated Interfaces
  Interface and Description
  groovy.swing.impl.ComponentFacade This interface is no longer used internally and there exists no equivilant functionality Superceded by FactoryBuilderSupport handling.
  groovy.swing.impl.ContainerFacade This interface is no longer used internally and there exists no equivilant functionality Superceded by FactoryBuilderSupport handling.
  groovy.swing.impl.Startable This interface is no longer used internally and there exists no equivilant functionality. Superceded by FactoryBuilderSupport handling.

- Deprecated Classes
  Class and Description
  groovy.util.GroovyLog
  groovy.ui.InteractiveShell
  org.codehaus.groovy.ast.expr.RegexExpression
  org.codehaus.groovy.runtime.TimeCategory in favor of `TimeCategory`

- Deprecated Fields
  Field and Description
  org.codehaus.groovy.runtime.wrappers.Wrapper.delegatingMetaClass
  groovy.lang.GroovyShell.EMPTY_ARGS

- Deprecated Methods
  Method and Description
  org.codehaus.groovy.ast.ModuleNode.addImportPackage(String) replaced by `ModuleNode.addStarImport(String)`
  org.codehaus.groovy.tools.javac.JavaStubCompilationUnit.addSourceFile(File)
  org.codehaus.groovy.ast.ModuleNode.addStaticImportClass(String, ClassNode) replaced by `ModuleNode.addStaticStarImport(String, ClassNode)`
  org.codehaus.groovy.ast.ModuleNode.addStaticMethodOrField(ClassNode, String, String) replaced by `ModuleNode.addStaticImport(ClassNode, String, String)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.asBoolean(GroovyResultSet) use SqlGroovyMethods#asBoolean(GroovyResultSet)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.clearTime(Calendar) moved to `DateGroovyMethods.clearTime(java.util.Calendar)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.clearTime(Date) moved to `DateGroovyMethods.clearTime(java.util.Date)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.clearTime(Date) moved to `DateGroovyMethods.clearTime(java.sql.Date)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.consumeProcessErrorStream(Process, OutputStream) use ProcessGroovyMethods#consumeProcessErrorStream(Process, OutputStream)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.consumeProcessErrorStream(Process, StringBuffer) use ProcessGroovyMethods#consumeProcessErrorStream(Process, Appendable)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.consumeProcessErrorStream(Process, Writer) use ProcessGroovyMethods#consumeProcessErrorStream(Process, Appendable)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.consumeProcessOutput(Process) use ProcessGroovyMethods#consumeProcessOutput(Process)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.consumeProcessOutput(Process, OutputStream, OutputStream) use ProcessGroovyMethods#consumeProcessOutput(Process, OutputStream, OutputStream)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.consumeProcessOutput(Process, StringBuffer, StringBuffer) use ProcessGroovyMethods#consumeProcessOutput(Process, Appendable, Appendable)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.consumeProcessOutputStream(Process, OutputStream) use ProcessGroovyMethods#consumeProcessOutputStream(Process, OutputStream)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.consumeProcessOutputStream(Process, StringBuffer) use ProcessGroovyMethods#consumeProcessOutputStream(Process, Appendable)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.consumeProcessOutputStream(Process, Writer) use ProcessGroovyMethods#consumeProcessOutputStream(Process, Appendable)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.decodeBase64(String) moved to `EncodingGroovyMethods.decodeBase64(java.lang.String)`
  groovy.lang.GroovyClassLoader.defineClass(ClassNode, String)
  groovy.lang.GroovyClassLoader.defineClass(String, byte[], ProtectionDomain)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.encodeBase64(byte[]) moved to `EncodingGroovyMethods.encodeBase64(byte[])`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.encodeBase64(Byte[]) moved to `EncodingGroovyMethods.encodeBase64(java.lang.Byte[])`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.encodeBase64(byte[], boolean) moved to `EncodingGroovyMethods.encodeBase64(byte[], boolean)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.encodeBase64(Byte[], boolean) moved to `EncodingGroovyMethods.encodeBase64(java.lang.Byte[], boolean)`
  groovy.lang.GroovyShell.evaluate(InputStream) Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues.
  groovy.lang.GroovyShell.evaluate(InputStream, String) Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues.
  groovy.lang.GroovyClassLoader.expandClassPath(List, String, String, boolean)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.format(Calendar, String) moved to `DateGroovyMethods.format(java.util.Calendar, java.lang.String)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.format(Date, String) moved to `DateGroovyMethods.format(java.util.Date, java.lang.String)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.getAt(Date, int) moved to `DateGroovyMethods.getAt(java.util.Date, int)`
  groovy.swing.impl.TableLayout.getComponent() Simply returns this
  org.codehaus.groovy.runtime.DefaultGroovyMethods.getDateString(Date) moved to `DateGroovyMethods.getDateString(java.util.Date)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.getDateTimeString(Date) moved to `DateGroovyMethods.getDateTimeString(java.util.Date)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.getErr(Process) use ProcessGroovyMethods#getErr(Process)
  org.codehaus.groovy.ast.ModuleNode.getImportPackages() replaced by `ModuleNode.getStarImports()`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.getIn(Process) use ProcessGroovyMethods#getIn(Process)
  groovy.lang.GroovyCodeSource.getInputStream() Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues.
  org.codehaus.groovy.ast.expr.MethodCallExpression.getMetaMethod()
  org.codehaus.groovy.runtime.DefaultGroovyMethods.getOut(Process) use ProcessGroovyMethods#getOut(Process)
  org.codehaus.groovy.ast.ModuleNode.getStaticImportAliases() replaced by `ModuleNode.getStaticImports()`
  org.codehaus.groovy.ast.ModuleNode.getStaticImportClasses() replaced by `ModuleNode.getStaticStarImports()`
  org.codehaus.groovy.ast.ModuleNode.getStaticImportFields() replaced by `ModuleNode.getStaticImports()`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.getText(Process) use ProcessGroovyMethods#getText(Process)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.getTimeString(Date) moved to `DateGroovyMethods.getTimeString(java.util.Date)`
  org.codehaus.groovy.runtime.InvokerHelper.getVersion() Use GroovySystem version instead.
  groovy.lang.GroovyShell.initializeBinding()
  groovy.lang.MetaClassImpl.invokeConstructorAt(Class, Object[]) use invokeConstructor instead
  org.codehaus.groovy.ast.VariableScope.isResolvingDynamic()
  org.codehaus.groovy.ast.expr.ConstructorCallExpression.isUsingAnnonymousInnerClass()
  org.codehaus.groovy.runtime.DefaultGroovyMethods.iterator(File) use File#eachLine instead please
  org.codehaus.groovy.runtime.DefaultGroovyMethods.iterator(NodeList) moved to `XmlGroovyMethods.iterator(org.w3c.dom.NodeList)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.leftShift(Process, byte[]) use ProcessGroovyMethods#leftShift(Process, byte[])
  org.codehaus.groovy.runtime.DefaultGroovyMethods.leftShift(Process, Object) use ProcessGroovyMethods#leftShift(Process, Object)
  groovy.util.GroovyScriptEngine.loadScriptByName(String, ClassLoader)
  org.codehaus.groovy.classgen.BytecodeHelper.loadVar(Variable) use loadVar(Variable,boolean) instead
  org.codehaus.groovy.runtime.DefaultGroovyMethods.minus(Calendar, Calendar) moved to `DateGroovyMethods.minus(java.util.Calendar, java.util.Calendar)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.minus(Date, Date) moved to `DateGroovyMethods.minus(java.util.Date, java.util.Date)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.minus(Date, int) moved to `DateGroovyMethods.minus(java.util.Date, int)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.minus(Date, int) moved to `DateGroovyMethods.minus(java.sql.Date, int)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.next(Date) moved to `DateGroovyMethods.next(java.util.Date)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.next(Date) moved to `DateGroovyMethods.next(java.sql.Date)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.or(Process, Process) use ProcessGroovyMethods#or(Process, Process)
  groovy.lang.GroovyShell.parse(InputStream) Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues.
  groovy.lang.GroovyShell.parse(InputStream, String) Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues.
  groovy.lang.GroovyClassLoader.parseClass(InputStream) Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues.
  groovy.lang.GroovyClassLoader.parseClass(InputStream, String) Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues.
  groovy.lang.DelegatingMetaClass.pickMethod(String, Class[])
  org.codehaus.groovy.runtime.metaclass.OwnedMetaClass.pickMethod(String, Class[])
  org.codehaus.groovy.runtime.DefaultGroovyMethods.pipeTo(Process, Process) use ProcessGroovyMethods#pipeTo(Process, Process)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.plus(Date, int) moved to `DateGroovyMethods.plus(java.util.Date, int)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.plus(Date, int) moved to `DateGroovyMethods.plus(java.sql.Date, int)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.previous(Date) moved to `DateGroovyMethods.previous(java.util.Date)`
  org.codehaus.groovy.runtime.DefaultGroovyMethods.previous(Date) moved to `DateGroovyMethods.previous(java.sql.Date)`
  groovy.lang.MetaClassImpl.retrieveMethod(String, Class[]) use pickMethod instead
  groovy.lang.GroovyShell.run(InputStream, String, String[]) Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues.
  groovy.xml.dom.DOMUtil.serialize(Element) use XmlUtil version instead
  groovy.xml.dom.DOMUtil.serialize(Element, OutputStream) use XmlUtil version instead
  org.codehaus.groovy.ast.VariableScope.setDynamicResolving(boolean)
  org.codehaus.groovy.ast.expr.MethodCallExpression.setMetaMethod(MetaMethod)
  groovy.util.GroovyScriptEngine.setParentClassLoader(ClassLoader)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.toRowResult(ResultSet) moved to `SqlGroovyMethods.toRowResult(java.sql.ResultSet)`
  groovy.xml.MarkupBuilder.transformValue(String)
  org.codehaus.groovy.ast.CodeVisitorSupport.visitRegexExpression(RegexExpression)
  org.codehaus.groovy.ast.GroovyCodeVisitor.visitRegexExpression(RegexExpression)
  org.codehaus.groovy.classgen.AsmClassGenerator.visitRegexExpression(RegexExpression)
  org.codehaus.groovy.transform.powerassert.TruthExpressionRewriter.visitRegexExpression(RegexExpression)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.waitForOrKill(Process, long) use ProcessGroovyMethods#waitForOrKill(Process, long)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.waitForProcessOutput(Process) use ProcessGroovyMethods#waitForProcessOutput(Process)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.waitForProcessOutput(Process, OutputStream, OutputStream) use ProcessGroovyMethods#waitForProcessOutput(Process, OutputStream, OutputStream)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.waitForProcessOutput(Process, StringBuffer, StringBuffer) use #waitForProcessOutput(Process, Appendable, Appendable)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.withOutputStream(Process, Closure) use ProcessGroovyMethods#withOutputStream(Process, Closure)
  org.codehaus.groovy.runtime.DefaultGroovyMethods.withWriter(Process, Closure) use ProcessGroovyMethods#withWriter(Process, Closure)

- Deprecated Constructors
  Constructor and Description
  org.codehaus.groovy.runtime.CurriedClosure(Closure, int)
  groovy.util.FactoryBuilderSupport(Closure)
  groovy.lang.GroovyCodeSource(InputStream, String, String) Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues.