# Deprecated API

## Contents

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

- Deprecated Fields
  Field and Description
  GroovyLexer#tokenNames | deprecated: Use VOCABULARY instead.
  GroovyParser#tokenNames | deprecated: Use VOCABULARY instead.
  GroovySystem#RUNNER_REGISTRY | Reference to the Runtime Registry to be used by the Groovy run-time system to find classes capable of running scripts
  MetaClassRegistryImpl#MODULE_META_INF_FILE | deprecated: Use ExtensionModuleScanner.MODULE_META_INF_FILE 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
  MOPIter.Index deprecated: use LinkedHashMap 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
  CompilerConfiguration#getOutput() Gets the currently configured output writer.
  CompilerConfiguration#setOutput(PrintWriter output) Sets the output writer.
  GeneralUtils#makeDescriptorWithoutReturnType(MethodNode mn) deprecated: use MethodNodeUtils#methodDescriptorWithoutReturnType(MethodNode) 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.
  GroovyCategorySupport#hasCategoryInAnyThread() deprecated: use hasCategoryInCurrentThread()
  Groovyc#makeCompileUnit() deprecated: This method is not in use anymore.
  ManagedConcurrentMap.Entry#finalizeRef() deprecated: use finalizeReference
  MetaClassHelper#capitalize(String property) deprecated: Use BeanUtils.capitalize instead
  MethodNode#getTypeDescriptor(boolean pretty) deprecated: use MethodNodeUtils.methodDescriptor
  ReferenceManager#getDefaultSoftBundle() deprecated: use ReferenceBundle.getSoftBundle
  ReferenceManager#getDefaultWeakBundle() deprecated: use ReferenceBundle.getWeakBundle
  ReturnAdder#addReturnIfNeeded(MethodNode node) deprecated: Use visitMethod(MethodNode) instead.
  Sql#preCheckForNamedParams(String sql) deprecated: Use buildSqlWithIndexedProps(String) instead
  StaticTypeCheckingSupport#evaluateExpression(Expression expr, CompilerConfiguration config) deprecated: Use evaluateExpression(Expression, CompilerConfiguration, GroovyClassLoader) instead
  StaticTypeCheckingSupport#findDGMMethodsByNameAndArguments(ClassNode receiver, String name, ClassNode args) deprecated: Use findDGMMethodsByNameAndArguments(ClassLoader, ClassNode, String, ClassNode[], List) instead
  StaticTypeCheckingSupport#findDGMMethodsByNameAndArguments(ClassNode receiver, String name, ClassNode args, List methods) deprecated: Use findDGMMethodsByNameAndArguments(ClassLoader, ClassNode, String, 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.
  XmlSlurper#setKeepWhitespace(boolean keepWhitespace) deprecated: use setKeepIgnorableWhitespace