Top Deprecated
Apache Groovy 3.0.20

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
groovy.lang.DelegatingMetaClass.pickMethod(String
the name of the method to pick
methodName
,
Class<T>[]
the method arguments
arguments
)

groovy.lang.GroovyClassLoader.parseClass(final InputStream in, final String fileName)

Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues. Use parseClass instead

groovy.lang.Mixin

static mixins have been deprecated in favour of traits (trait keyword).

Returns:

the TimeZone
groovy.time.TimeCategory.getTimeZone
(Date
a Date
self
)

Returns:

the text content at the location
groovy.ui.GroovyMain.getText
(String uriOrFilename)

groovy.util.GroovyCollections.combinations(Collection<E>
the given collections
collections
)

use combinations(Iterable)

groovy.util.GroovyCollections.max(Collection<T> items)

use max(Iterable)

groovy.util.GroovyCollections.min(Collection<T> items)

use min(Iterable)

groovy.util.GroovyCollections.sum(Collection<E> items)

use sum(Iterable)

Returns:

the nodes matching name
groovy.util.Node.getAt
(QName
the QName of interest
name
)

use getAt(groovy.namespace.QName) instead

Returns:

QName corresponding to the given String
groovy.xml.QName.valueOf
(String
the string to be parsed
s
)

Deprecated as a consequence of QName being deprecated. See corresponding docs for further information.

org.codehaus.groovy.antlr.ASTParserException.ASTParserException(ASTRuntimeException e)

Deprecated as a consequence of ASTRuntimeException being deprecated. See corresponding docs for further information.

org.codehaus.groovy.antlr.ASTParserException.ASTParserException(String message, ASTRuntimeException e)

Deprecated as a consequence of ASTRuntimeException being deprecated. See corresponding docs for further information.

org.codehaus.groovy.antlr.ASTParserException.getColumnLast(ASTRuntimeException e)

Deprecated as a consequence of ASTRuntimeException being deprecated. See corresponding docs for further information.

org.codehaus.groovy.antlr.ASTParserException.getLineLast(ASTRuntimeException e)

Deprecated as a consequence of ASTRuntimeException being deprecated. See corresponding docs for further information.

Returns:

the new frame rending the parsed tokens
org.codehaus.groovy.antlr.LexerFrame.groovyScriptFactory
(String
the Groovy source file to parse/render
scriptText
)

Deprecated as a consequence of LexerFrame being deprecated. See corresponding docs for further information.

org.codehaus.groovy.antlr.UnicodeLexerSharedInputState.UnicodeLexerSharedInputState(UnicodeEscapingReader in)

Deprecated as a consequence of UnicodeEscapingReader being deprecated. See corresponding docs for further information.

org.codehaus.groovy.antlr.UnicodeLexerSharedInputState.escapingReader

Deprecated as a consequence of UnicodeEscapingReader being deprecated. See corresponding docs for further information.

org.codehaus.groovy.antlr.treewalker.PreOrderTraversal

Deprecated as a consequence of TraversalHelper being deprecated.

org.codehaus.groovy.antlr.treewalker.SourceCodeTraversal

Deprecated as a consequence of TraversalHelper being deprecated.

org.codehaus.groovy.ast.MixinASTTransformation

static mixins have been deprecated in favour of traits (trait keyword).

org.codehaus.groovy.ast.PropertyNode.setClosureSharedVariable(boolean inClosure)

not used anymore, has no effect

org.codehaus.groovy.ast.tools.GeneralUtils.makeDescriptorWithoutReturnType(final MethodNode mn)

use MethodNodeUtils#methodDescriptorWithoutReturnType(MethodNode) instead

Returns:

aligned type arguments
org.codehaus.groovy.ast.tools.GenericsUtils.alignGenericTypes
(final GenericsType[]
the type arguments or the redirect class node
redirectGenericTypes
,
final GenericsType[]
the actual type arguments used on this class node
parameterizedTypes
,
final GenericsType[]
the generic type arguments to which we want to align to
alignmentTarget
)

You shouldn't call this method because it is inherently unreliable

Returns:

a parameterized interface class node
org.codehaus.groovy.ast.tools.GenericsUtils.parameterizeInterfaceGenerics
(final ClassNode
the class node where generics types are parameterized
hint
,
final ClassNode
the interface we want to parameterize generics types
target
)

Use #parameterizeType instead

org.codehaus.groovy.classgen.asm.sc.AbstractFunctionalInterfaceWriter.createBootstrapMethodArguments(final String abstractMethodDesc, final int insn, final ClassNode methodOwner, final MethodNode methodNode, final boolean serializable)

org.codehaus.groovy.classgen.asm.sc.StaticInvocationWriter.tryBridgeMethod(final MethodNode target, final Expression receiver, final boolean implicitThis, final TupleExpression args)

org.codehaus.groovy.control.CompilerConfiguration.setOutput(final PrintWriter output)

not used anymore, has no effect

Returns:

the factory for the parser
org.codehaus.groovy.control.ParserPluginFactory.antlr2
()

org.codehaus.groovy.control.ResolveVisitor.tryToConstructOuterNestedClassNode(final ClassNode type, final ClassNode outerClassNode, final BiConsumer<CompileUnit.ConstructedOuterNestedClassNode, ClassNode> setRedirectListener)

Deprecated as a consequence of CompileUnit.ConstructedOuterNestedClassNode being deprecated. See corresponding docs for further information.

org.codehaus.groovy.control.ResolveVisitor.tryToConstructOuterNestedClassNodeForBaseType(final CompileUnit compileUnit, final String typeName, final ClassNode cn, final BiConsumer<CompileUnit.ConstructedOuterNestedClassNode, ClassNode> setRedirectListener)

Deprecated as a consequence of CompileUnit.ConstructedOuterNestedClassNode being deprecated. See corresponding docs for further information.

org.codehaus.groovy.control.ResolveVisitor.tryToConstructOuterNestedClassNodeViaStaticImport(final CompileUnit compileUnit, final ImportNode importNode, final String typeName, final BiConsumer<CompileUnit.ConstructedOuterNestedClassNode, ClassNode> setRedirectListener)

Deprecated as a consequence of CompileUnit.ConstructedOuterNestedClassNode being deprecated. See corresponding docs for further information.

org.codehaus.groovy.reflection.AccessPermissionChecker.createCacheAccessControlExceptionOf(Method method, AccessControlException e)

Deprecated as a consequence of AccessControlException being deprecated. See corresponding docs for further information.

org.codehaus.groovy.reflection.AccessPermissionChecker.createCacheAccessControlExceptionOf(Constructor<T> constructor, AccessControlException e)

Deprecated as a consequence of AccessControlException being deprecated. See corresponding docs for further information.

org.codehaus.groovy.reflection.AccessPermissionChecker.createCacheAccessControlExceptionOf(Field field, AccessControlException e)

Deprecated as a consequence of AccessControlException being deprecated. See corresponding docs for further information.

org.codehaus.groovy.reflection.ReflectionUtils.ClassContextHelper

Deprecated as a consequence of SecurityManager being deprecated. See corresponding docs for further information.

org.codehaus.groovy.reflection.ReflectionUtils.HELPER

Deprecated as a consequence of ReflectionUtils.ClassContextHelper being deprecated. See corresponding docs for further information.

org.codehaus.groovy.runtime.DateGroovyMethods

use DateUtilExtensions instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.asList(Collection<T> self)

Use the Iterable version of asList instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.collate(List<T> self, int size)

use the Iterable variant instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.collate(List<T> self, int size, int step)

use the Iterable variant instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.collate(List<T> self, int size, boolean keepRemainder)

use the Iterable variant instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.collate(List<T> self, int size, int step, boolean keepRemainder)

use the Iterable variant instead

Returns:

a List of the transformed values
org.codehaus.groovy.runtime.DefaultGroovyMethods.collect
(Collection<T>
a collection
self
)

use the Iterable version instead

Returns:

a List of the transformed values
org.codehaus.groovy.runtime.DefaultGroovyMethods.collect
(Collection<S>
a collection
self
,
Closure<T>
the closure used to transform each item of the collection
transform
)

use the Iterable version instead

Returns:

the collector with all transformed values added to it
org.codehaus.groovy.runtime.DefaultGroovyMethods.collect
(Collection<S>
a collection
self
,
Collection<T>
the Collection to which the transformed values are added
collector
,
Closure<? extends T>
the closure used to transform each item of the collection
transform
)

use the Iterable version instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.collectAll(Collection<E> self, Closure<V> transform)

Use collectNested instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.collectAll(Collection<E> self, Collection<E> collector, Closure<V> transform)

Use collectNested instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.collectEntries(Collection<?> self, Closure<?> transform)

Use the Iterable version of collectEntries instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.collectEntries(Collection<?> self)

Use the Iterable version of collectEntries instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.collectEntries(Collection<?> self, Map<K, V> collector, Closure<?> transform)

Use the Iterable version of collectEntries instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.collectEntries(Collection<?> self, Map<K, V> collector)

Use the Iterable version of collectEntries instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.collectMany(Collection<E> self, Closure<? extends Collection<? extends T>> projection)

Use the Iterable version of collectMany instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.collectMany(Collection<E> self, Collection<T> collector, Closure<? extends Collection<? extends T>> projection)

Use the Iterable version of collectMany instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.collectNested(Collection<E> self, Collection<E> collector, Closure<V> transform)

Use the Iterable version of collectNested instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.combinations(Collection<E> self)

Use the Iterable version of combinations instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.containsAll(Collection<E> self, Object[] items)

use the Iterable variant instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.count(Collection<E> self, Object value)

use count(Iterable, Closure)

org.codehaus.groovy.runtime.DefaultGroovyMethods.count(Collection<E> self, Closure<V> closure)

use count(Iterable, Closure)

org.codehaus.groovy.runtime.DefaultGroovyMethods.countBy(Collection<E> self, Closure<K> closure)

Use the Iterable version of countBy instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.disjoint(Collection<E> left, Collection<E> right)

use the Iterable variant instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.eachPermutation(Collection<T> self, Closure<V> closure)

Use the Iterable version of eachPermutation instead

Returns:

the first non-null result from calling the closure, or the defaultValue
org.codehaus.groovy.runtime.DefaultGroovyMethods.findResult
(Collection<S>
a Collection
self
,
U
an Object that should be returned if all closure results are null
defaultResult
,
Closure<V>
a closure that returns a non-null value to indicate that processing should stop and the value should be returned
condition
)

use the Iterable version instead

Returns:

the first non-null result from calling the closure, or null
org.codehaus.groovy.runtime.DefaultGroovyMethods.findResult
(Collection<S>
a Collection
self
,
Closure<T>
a closure that returns a non-null value to indicate that processing should stop and the value should be returned
condition
)

use the Iterable version instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.findResults(Collection<U> self, Closure<T> filteringTransform)

Use the Iterable version of findResults instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.flatten(Collection<T> self, Closure<? extends T> flattenUsing)

Use the Iterable version of flatten instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.groupBy(Collection<T> self, Closure<K> closure)

Use the Iterable version of groupBy instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.groupBy(Collection<E> self, Object... closures)

Use the Iterable version of groupBy instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.groupBy(Collection<E> self, List<Closure<V>> closures)

Use the Iterable version of groupBy instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.join(Collection<E> self, String separator)

Use the Iterable version of join instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.max(Collection<T> self)

Use the Iterable version of max instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.max(Collection<T> self, Closure<V> closure)

Use the Iterable version of max instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.max(Collection<T> self, Comparator<T> comparator)

Use the Iterable version of max instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.min(Collection<T> self)

Use the Iterable version of min instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.min(Collection<T> self, Comparator<T> comparator)

Use the Iterable version of min instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.min(Collection<T> self, Closure<V> closure)

Use the Iterable version of min instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.multiply(Collection<T> self, Number factor)

use the Iterable variant instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.permutations(List<T> self, Closure<V> function)

Use the Iterable version of permutations instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.sum(Collection<E> self)

Use the Iterable version of sum instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.sum(Collection<E> self, Object initialValue)

Use the Iterable version of sum instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.sum(Collection<E> self, Closure<V> closure)

Use the Iterable version of sum instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.sum(Collection<E> self, Object initialValue, Closure<V> closure)

Use the Iterable version of sum instead

org.codehaus.groovy.runtime.DefaultGroovyMethods.toList(Collection<T> self)

Use the Iterable version of toList instead

org.codehaus.groovy.runtime.MetaClassHelper.capitalize(final String property)

Use BeanUtils.capitalize instead

Returns:

the method with 1 parameter which takes the most general type of object (e.g. Object) ignoring primitive types
org.codehaus.groovy.runtime.MetaClassHelper.chooseMostGeneralMethodWith1NullParam
(FastArray
the methods to choose from
methods
)

Returns:

the length of the String
org.codehaus.groovy.runtime.StringGroovyMethods.size
(final String
a String
self
)

Returns:

the length of the StringBuffer
org.codehaus.groovy.runtime.StringGroovyMethods.size
(final StringBuffer
a StringBuffer
self
)

Returns:

instantiated Number object
org.codehaus.groovy.syntax.Numbers.parseInteger
(AST
at node for error reporting in the parser
reportNode
,
String
literal text to parse
text
)

org.codehaus.groovy.transform.AbstractASTTransformUtil

use org.codehaus.groovy.ast.tools.GeneralUtils

org.codehaus.groovy.transform.AbstractASTTransformation.shouldSkipOnDescriptor(boolean checkReturn, Map<K, V> genericsSpec, MethodNode mNode, List<ClassNode> excludeTypes, List<ClassNode> includeTypes)

org.codehaus.groovy.transform.stc.StaticTypeCheckingVisitor.checkClosureParameters(final Expression callArguments, final ClassNode receiver)

this method is unused, replaced with DelegatesTo inference.

org.codehaus.groovy.vmplugin.v7.CacheableCallSite.getAndPut(String className, MemoizeCache.ValueProvider<? super String, ? extends MethodHandleWrapper> valueProvider)

Deprecated as a consequence of MethodHandleWrapper being deprecated. See corresponding docs for further information.

org.codehaus.groovy.vmplugin.v7.CacheableCallSite.latestHitMethodHandleWrapper

Deprecated as a consequence of MethodHandleWrapper being deprecated. See corresponding docs for further information.

org.codehaus.groovy.vmplugin.v7.CacheableCallSite.put(String name, MethodHandleWrapper mhw)

Deprecated as a consequence of MethodHandleWrapper being deprecated. See corresponding docs for further information.

org.codehaus.groovy.vmplugin.v7.IndyMath.chooseMathMethod(Selector info, MetaMethod metaMethod)

Deprecated as a consequence of Selector being deprecated. See corresponding docs for further information.

org.codehaus.groovy.vmplugin.v7.Selector.CastSelector

Deprecated as a consequence of Selector.MethodSelector being deprecated. See corresponding docs for further information.

org.codehaus.groovy.vmplugin.v7.Selector.InitSelector

Deprecated as a consequence of Selector.MethodSelector being deprecated. See corresponding docs for further information.

org.codehaus.groovy.vmplugin.v7.Selector.MethodSelector

Deprecated as a consequence of Selector being deprecated. See corresponding docs for further information.

org.codehaus.groovy.vmplugin.v7.Selector.PropertySelector

Deprecated as a consequence of Selector.MethodSelector being deprecated. See corresponding docs for further information.

org.codehaus.groovy.vmplugin.v7.Selector.getSelector(MutableCallSite callSite, Class<?> sender, String methodName, int callID, boolean safeNavigation, boolean thisCall, boolean spreadCall, Object[] arguments)

Deprecated as a consequence of Selector being deprecated. See corresponding docs for further information.

org.codehaus.groovy.vmplugin.v8.Java8.makeParameter(final CompileUnit cu, final Type type, final Class<?> cl, final Annotation[] annotations, final String name)

Returns:

the length of the StringBuilder
org.codehaus.groovy.vmplugin.v8.PluginDefaultGroovyMethods.size
(final StringBuilder
a StringBuilder
self
)