# 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
  AsmClassGenerator#isValidFieldNodeForByteCodeAccess(FieldNode field, ClassNode accessingClass) deprecated: use isFieldDirectlyAccessible(FieldNode, ClassNode) instead.
  CompilerConfiguration#getOutput() Gets the currently configured output writer.
  CompilerConfiguration#setOutput(PrintWriter output) Sets the output writer.
  Console#run(JApplet applet) Runs the console embedded in the given applet.
  DefaultGroovyMethods#putAt(List self, List splice, List values) deprecated: use #putAt(List, List, Collection), retained for binary compatibility
  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.
  Java8#getElementCode(ElementType value) deprecated: use elementTypeToTarget EnumMap in Groovy 5
  ManagedConcurrentMap.Entry#finalizeRef() deprecated: use finalizeReference
  MetaClassHelper#capitalize(String property) deprecated: Use BeanUtils.capitalize instead
  MethodNode#getTypeDescriptor(boolean pretty) deprecated: use MethodNodeUtils.methodDescriptor
  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) 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.
  StaticTypeCheckingVisitor#checkGroovyStyleConstructor(ClassNode node, ClassNode arguments) Checks that a constructor style expression is valid regarding the number of arguments and the argument types.
  StructuredSyntaxDocumentFilter.MultiLineRun#getDelimeterSize() deprecated: use getDelimiterSize() instead
  XmlSlurper#setKeepWhitespace(boolean keepWhitespace) deprecated: use setKeepIgnorableWhitespace