# Deprecated API

## Contents

- Deprecated Class
- Deprecated Annotation Type
- Deprecated Method
- Deprecated Field
- Deprecated Property

- Deprecated Fields
  Field and Description
  MetaClassRegistryImpl#MODULE_META_INF_FILE | @deprecated Use instead

- Deprecated Properties
  Property and Description
  CliBuilder#posix | To change from the default PosixParser to the GnuParser, set this to false.

- Deprecated Classes
  Class and Description
  AbstractASTTransformUtil @deprecated use org.codehaus.groovy.ast.tools.GeneralUtils
  GroovyAssert @deprecated Use the GroovyAssert class instead
  MixinASTTransformation @deprecated static mixins have been deprecated in favour of traits (trait keyword).

- Deprecated Annotation Types
  Annotation Type and Description
  Mixin Provides a mechanism for mixing in methods into a class.

- Deprecated Methods
  Method and Description
  AbstractASTTransformation#nonGeneric(ClassNode type) @deprecated use GenericsUtils#nonGeneric
  DefaultGroovyMethods#asList(Collection self) @deprecated Use the Iterable version of asList instead
  DefaultGroovyMethods#collectAll(Collection self, Closure transform) Deprecated alias for collectNested
  DefaultGroovyMethods#collectAll(Collection self, Collection collector, Closure transform) Deprecated alias for collectNested
  DefaultGroovyMethods#collectEntries(Collection self, Closure transform) @deprecated Use the Iterable version of collectEntries instead
  DefaultGroovyMethods#collectEntries(Collection self) @deprecated Use the Iterable version of collectEntries instead
  DefaultGroovyMethods#collectEntries(Collection self, Map collector, Closure transform) @deprecated Use the Iterable version of collectEntries instead
  DefaultGroovyMethods#collectEntries(Collection self, Map collector) @deprecated Use the Iterable version of collectEntries instead
  DefaultGroovyMethods#collectMany(Collection self, Closure> projection) @deprecated Use the Iterable version of collectMany instead
  DefaultGroovyMethods#collectMany(Collection self, Collection collector, Closure> projection) @deprecated Use the Iterable version of collectMany instead
  DefaultGroovyMethods#collectNested(Collection self, Collection collector, Closure transform) @deprecated Use the Iterable version of collectNested instead
  DefaultGroovyMethods#combinations(Collection self) @deprecated Use the Iterable version of combinations instead
  DefaultGroovyMethods#count(Collection self, Object value) @deprecated use count(Iterable, Closure)
  DefaultGroovyMethods#count(Collection self, Closure closure) @deprecated use count(Iterable, Closure)
  DefaultGroovyMethods#countBy(Collection self, Closure closure) @deprecated Use the Iterable version of countBy instead
  DefaultGroovyMethods#findResults(Collection self, Closure filteringTransform) @deprecated Use the Iterable version of findResults instead
  DefaultGroovyMethods#groupBy(Collection self, Closure closure) @deprecated Use the Iterable version of groupBy instead
  DefaultGroovyMethods#groupBy(Collection self, Object closures) @deprecated Use the Iterable version of groupBy instead
  DefaultGroovyMethods#join(Collection self, String separator) @deprecated Use the Iterable version of join instead
  DefaultGroovyMethods#max(Collection self) @deprecated Use the Iterable version of max instead
  DefaultGroovyMethods#max(Collection self, Closure closure) @deprecated Use the Iterable version of max instead
  DefaultGroovyMethods#max(Collection self, Comparator comparator) @deprecated Use the Iterable version of max instead
  DefaultGroovyMethods#min(Collection self) @deprecated Use the Iterable version of min instead
  DefaultGroovyMethods#min(Collection self, Comparator comparator) @deprecated Use the Iterable version of min instead
  DefaultGroovyMethods#min(Collection self, Closure closure) @deprecated Use the Iterable version of min instead
  DefaultGroovyMethods#sort(Collection self) @deprecated Use the Iterable version of sort instead
  DefaultGroovyMethods#sort(Collection self, boolean mutate) @deprecated Use the Iterable version of sort instead
  DefaultGroovyMethods#sort(Collection self, Comparator comparator) @deprecated Use the Iterable version of sort instead
  DefaultGroovyMethods#sort(Collection self, boolean mutate, Comparator comparator) @deprecated Use the Iterable version of sort instead
  DefaultGroovyMethods#sort(Collection self, boolean mutate, Closure closure) @deprecated Use the Iterable version of sort instead
  DefaultGroovyMethods#sum(Collection self) @deprecated Use the Iterable version of sum instead
  DefaultGroovyMethods#sum(Collection self, Object initialValue) @deprecated Use the Iterable version of sum instead
  DefaultGroovyMethods#sum(Collection self, Closure closure) @deprecated Use the Iterable version of sum instead
  DefaultGroovyMethods#sum(Collection self, Object initialValue, Closure closure) @deprecated Use the Iterable version of sum instead
  FileSystemCompiler#createTempDir() Creates a temporary directory in the default temporary directory (as specified by the system property java.io.tmpdir.
  GenericsUtils#alignGenericTypes(GenericsType redirectGenericTypes, GenericsType parameterizedTypes, GenericsType alignmentTarget) Given a parameterized type and a generic type information, aligns actual type parameters.
  GenericsUtils#parameterizeInterfaceGenerics(ClassNode hint, ClassNode target) Interface class nodes retrieved from ClassNode.getInterfaces or ClassNode.getAllInterfaces are returned with generic type arguments.
  GroovyClassLoader#parseClass(InputStream in, String fileName) @deprecated Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues.
  GroovyCollections#combinations(Collection collections) @param collections the given collections
  GroovyCollections#max(Collection items) @deprecated use max(Iterable)
  GroovyCollections#min(Collection items) @deprecated use min(Iterable)
  GroovyCollections#sum(Collection items) @deprecated use sum(Iterable)
  ReturnAdder#addReturnIfNeeded(MethodNode node) Adds return statements in method code whenever an implicit return is detected.
  Sql#preCheckForNamedParams(String sql) @deprecated Use buildSqlWithIndexedProps(String) instead
  StaticTypeCheckingSupport#findDGMMethodsByNameAndArguments(ClassNode receiver, String name, ClassNode args) @deprecated Use findDGMMethodsByNameAndArguments(ClassLoader, org.codehaus.groovy.ast.ClassNode, String, org.codehaus.groovy.ast.ClassNode[], java.util.List) instead
  StaticTypeCheckingSupport#findDGMMethodsByNameAndArguments(ClassNode receiver, String name, ClassNode args, List methods) @deprecated Use findDGMMethodsByNameAndArguments(ClassLoader, org.codehaus.groovy.ast.ClassNode, String, org.codehaus.groovy.ast.ClassNode[], List) instead
  StaticTypeCheckingSupport#findDGMMethodsForClassNode(ClassNode clazz, String name) @deprecated Use findDGMMethodsForClassNode(ClassLoader,ClassNode,String) instead
  StaticTypeCheckingSupport#findDGMMethodsForClassNode(ClassNode clazz, String name, TreeSet accumulator) @deprecated Use findDGMMethodsForClassNode(ClassLoader, ClassNode, String, TreeSet) instead
  StaticTypeCheckingVisitor#checkClosureParameters(Expression callArguments, ClassNode receiver) @deprecated this method is unused, replaced with DelegatesTo inference.
  StaticTypeCheckingVisitor#checkGroovyStyleConstructor(ClassNode node, ClassNode arguments) Checks that a constructor style expression is valid regarding the number of arguments and the argument types.
  XmlSlurper#setKeepWhitespace(boolean keepWhitespace) @deprecated use setKeepIgnorableWhitespace