Deprecated API (groovy 2.4.11 API)
Date: 2017-04-27

# 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
  ManagedLinkedList This class provides a very simple linked list of memory managed elements.
  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
  CompilerConfiguration#getOutput() Gets the currently configured output writer.
  CompilerConfiguration#setOutput(PrintWriter output) Sets the output writer.
  DefaultGroovyMethods#asList(Collection self) @deprecated Use the Iterable version of asList instead
  DefaultGroovyMethods#collate(List self, int size) @deprecated use the Iterable variant instead
  DefaultGroovyMethods#collate(List self, int size, int step) @deprecated use the Iterable variant instead
  DefaultGroovyMethods#collate(List self, int size, boolean keepRemainder) @deprecated use the Iterable variant instead
  DefaultGroovyMethods#collate(List self, int size, int step, boolean keepRemainder) @deprecated use the Iterable variant 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#containsAll(Collection self, Object items) @deprecated use the Iterable variant 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#disjoint(Collection left, Collection right) @deprecated use the Iterable variant instead
  DefaultGroovyMethods#eachPermutation(Collection self, Closure closure) @deprecated Use the Iterable version of eachPermutation instead
  DefaultGroovyMethods#findResults(Collection self, Closure filteringTransform) @deprecated Use the Iterable version of findResults instead
  DefaultGroovyMethods#flatten(Collection self, Closure flattenUsing) @deprecated Use the Iterable version of flatten 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#groupBy(Collection self, List 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#multiply(Collection self, Number factor) @deprecated use the Iterable variant instead
  DefaultGroovyMethods#permutations(List self) @deprecated Use the Iterable version of permutations instead
  DefaultGroovyMethods#permutations(List self, Closure function) @deprecated Use the Iterable version of permutations 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#sort(Collection self, 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
  DefaultGroovyMethods#toList(Collection self) @deprecated Use the Iterable version of toList instead
  FileSystemCompiler#createTempDir() Creates a temporary directory in the default temporary directory (as specified by the system property java.io.tmpdir.
  GeneralUtils#getterX(ClassNode annotatedNode, PropertyNode pNode) @deprecated use getterThisX instead
  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)
  IndyInterface#bootstrap(Lookup caller, String name, MethodType type) bootstrap method for standard method calls
  IndyInterface#bootstrapCurrent(Lookup caller, String name, MethodType type) bootstrap method for method calls with "this" as receiver
  IndyInterface#bootstrapCurrentSafe(Lookup caller, String name, MethodType type) bootstrap method for method calls with "this" as receiver safe
  IndyInterface#bootstrapSafe(Lookup caller, String name, MethodType type) bootstrap method for null safe standard method calls
  ManagedConcurrentMap.Entry#finalizeRef() @deprecated use finalizeReference
  ParserPluginFactory#newInstance(boolean useNewParser) Creates a new instance of ParserPluginFactory.
  PropertyNode#setClosureSharedVariable(boolean inClosure) @deprecated not used anymore, has no effect
  ReferenceManager#getDefaultSoftBundle() @deprecated use ReferenceBundle.getSoftBundle
  ReferenceManager#getDefaultWeakBundle() @deprecated use ReferenceBundle.getWeakBundle
  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.
  StringGroovyMethods#bitwiseNegate(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#capitalize(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#center(String self, Number numberOfChars) @deprecated Use the CharSequence version
  StringGroovyMethods#center(String self, Number numberOfChars, String padding) @deprecated Use the CharSequence version
  StringGroovyMethods#contains(String self, String text) @deprecated Use the CharSequence version
  StringGroovyMethods#count(String self, String text) @deprecated Use the CharSequence version
  StringGroovyMethods#denormalize(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#eachLine(String self, Closure closure) @deprecated Use the CharSequence version
  StringGroovyMethods#eachLine(String self, int firstLine, Closure closure) @deprecated Use the CharSequence version
  StringGroovyMethods#expand(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#expand(String self, int tabStop) @deprecated Use the CharSequence version
  StringGroovyMethods#expandLine(String self, int tabStop) @deprecated Use the CharSequence version
  StringGroovyMethods#find(String self, Pattern pattern) @deprecated Use the CharSequence version
  StringGroovyMethods#find(String self, Pattern pattern, Closure closure) @deprecated Use the CharSequence version
  StringGroovyMethods#find(String self, String regex) @deprecated Use the CharSequence version
  StringGroovyMethods#find(String self, String regex, Closure closure) @deprecated Use the CharSequence version
  StringGroovyMethods#findAll(String self, Pattern pattern) @deprecated Use the CharSequence version
  StringGroovyMethods#findAll(String self, Pattern pattern, Closure closure) @deprecated Use the CharSequence version
  StringGroovyMethods#findAll(String self, String regex) @deprecated Use the CharSequence version
  StringGroovyMethods#findAll(String self, String regex, Closure closure) @deprecated Use the CharSequence version
  StringGroovyMethods#getAt(String self, Collection indices) @deprecated Use the CharSequence version
  StringGroovyMethods#getAt(String text, EmptyRange range) @deprecated Use the CharSequence version
  StringGroovyMethods#getChars(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#isAllWhitespace(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#isBigDecimal(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#isBigInteger(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#isCase(GString caseValue, Object switchValue) @deprecated Use the CharSequence version
  StringGroovyMethods#isCase(String caseValue, Object switchValue) @deprecated Use the CharSequence version
  StringGroovyMethods#isDouble(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#isFloat(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#isInteger(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#isLong(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#isNumber(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#matches(String self, Pattern pattern) @deprecated Use the CharSequence version
  StringGroovyMethods#minus(String self, Pattern pattern) @deprecated Use the CharSequence version
  StringGroovyMethods#minus(String self, Object target) @deprecated Use the CharSequence version
  StringGroovyMethods#multiply(String self, Number factor) @deprecated Use the CharSequence version
  StringGroovyMethods#next(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#normalize(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#padLeft(String self, Number numberOfChars) @deprecated Use the CharSequence version
  StringGroovyMethods#padLeft(String self, Number numberOfChars, String padding) @deprecated Use the CharSequence version
  StringGroovyMethods#padRight(String self, Number numberOfChars) @deprecated Use the CharSequence version
  StringGroovyMethods#padRight(String self, Number numberOfChars, String padding) @deprecated Use the CharSequence version
  StringGroovyMethods#plus(String left, Object value) @deprecated Use the CharSequence version
  StringGroovyMethods#previous(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#readLines(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#replaceAll(String self, Pattern pattern, Closure closure) @deprecated Use the CharSequence version
  StringGroovyMethods#replaceAll(String self, Pattern pattern, String replacement) @deprecated Use the CharSequence version
  StringGroovyMethods#replaceAll(String self, String regex, Closure closure) @deprecated Use the CharSequence version
  StringGroovyMethods#replaceFirst(String self, Pattern pattern, Closure closure) @deprecated Use the CharSequence version
  StringGroovyMethods#replaceFirst(String self, Pattern pattern, String replacement) @deprecated Use the CharSequence version
  StringGroovyMethods#replaceFirst(String self, String regex, Closure closure) @deprecated Use the CharSequence version
  StringGroovyMethods#reverse(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#split(GString self) @deprecated Use the CharSequence version
  StringGroovyMethods#split(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#splitEachLine(String self, Pattern pattern, Closure closure) @deprecated Use the CharSequence version
  StringGroovyMethods#splitEachLine(String self, String regex, Closure closure) @deprecated Use the CharSequence version
  StringGroovyMethods#stripIndent(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#stripIndent(String self, int numChars) @deprecated Use the CharSequence version
  StringGroovyMethods#stripMargin(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#stripMargin(String self, char marginChar) @deprecated Use the CharSequence version
  StringGroovyMethods#stripMargin(String self, String marginChar) @deprecated Use the CharSequence version
  StringGroovyMethods#toBigDecimal(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#toBigInteger(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#toDouble(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#toFloat(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#toInteger(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#toList(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#toLong(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#toSet(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#toShort(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#tokenize(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#tokenize(String self, Character token) @deprecated Use the CharSequence version
  StringGroovyMethods#tokenize(String self, String token) @deprecated Use the CharSequence version
  StringGroovyMethods#tr(String self, String sourceSet, String replacementSet) @deprecated Use the CharSequence version
  StringGroovyMethods#unexpand(String self) @deprecated Use the CharSequence version
  StringGroovyMethods#unexpand(String self, int tabStop) @deprecated Use the CharSequence version
  StringGroovyMethods#unexpandLine(String self, int tabStop) @deprecated Use the CharSequence version
  XmlSlurper#setKeepWhitespace(boolean keepWhitespace) @deprecated use setKeepIgnorableWhitespace