Deprecated API
Contents
- Terminally Deprecated
- Classes
- Exception Classes
- Annotation Interfaces
- Fields
- Methods
- Constructors
- Enum Constants
-
Terminally Deprecated ElementsElementDescriptionwith no replacement since introspection is included when
adding a reflection hint for a type
.with no replacement since introspection is included whenadding a reflection hint for a type
.in favor ofMemberCategory.ACCESS_DECLARED_FIELDS
with similar semantics.with no replacement since introspection is included whenadding a reflection hint for a type
.with no replacement since introspection is added by default whenadding a reflection hint for a type
.with no replacement since introspection is included whenadding a reflection hint for a type
.with no replacement since introspection is added by default whenadding a reflection hint for a type
.with no replacement since introspection is included whenadding a reflection hint for a type
.in favor ofMemberCategory.ACCESS_PUBLIC_FIELDS
with similar semantics.since 7.0 in favor ofReflectionHintsPredicates.onConstructorInvocation(Constructor)
orReflectionHintsPredicates.onType(Class)
.since 7.0 in favor ofReflectionHintsPredicates.onFieldAccess(Class, String)
with similar semantics.since 7.0 in favor ofReflectionHintsPredicates.onFieldAccess(Field)
with similar semantics.since 7.0 in favor ofReflectionHintsPredicates.onFieldAccess(String, String)
with similar semantics.since 7.0 in favor ofReflectionHintsPredicates.onMethodInvocation(Class, String)
orReflectionHintsPredicates.onType(Class)
.since 7.0 in favor ofReflectionHintsPredicates.onMethodInvocation(Method)
orReflectionHintsPredicates.onType(Class)
.since 7.0 in favor ofReflectionHintsPredicates.onMethodInvocation(String, String)
orReflectionHintsPredicates.onType(Class)
.since 7.0 in favor ofFileSystemResource
-
Deprecated ClassesClassDescriptionsince 6.1 with no replacement; use an enum, map, or similar custom solution insteadsince 6.1 with no plans for a replacementsince 7.0 in favor of
FileSystemResource
as of 6.1 in favor ofComparator.naturalOrder()
as of 6.1 in favor ofComparator.nullsLast(java.util.Comparator<? super T>)
andComparator.nullsFirst(java.util.Comparator<? super T>)
as of 6.0, with no concrete replacement
-
Deprecated Exception ClassesException ClassDescriptionas of 5.3.16 since the common executors do not support start timeouts
-
Deprecated Annotation InterfacesAnnotation InterfaceDescriptionsince 7.0; use
NonNull
insteadsince 7.0; useNullMarked
insteadsince 7.0; useNullMarked
insteadsince 7.0; useNullable
instead
-
Deprecated FieldsFieldDescriptionUse
ClassReader.readByte(int)
and the other read methods instead. This field will eventually be deleted.this customizer might result in unexpected class leak since key object still holds a strong reference to the Object and class. It is recommended to have pre-processing method that would strip Objects and represent Classes as Stringsas of 5.2.6 since theMergedAnnotations
model always ignores lang annotations according to theAnnotationFilter.PLAIN
filter (for efficiency reasons)as of 5.3.16 along withAsyncTaskExecutor.execute(Runnable, long)
as of 5.3.16 along withAsyncTaskExecutor.execute(Runnable, long)
-
Deprecated MethodsMethodDescriptionsince 7.0 in favor of
ReflectionHintsPredicates.onConstructorInvocation(Constructor)
orReflectionHintsPredicates.onType(Class)
.since 7.0 in favor ofReflectionHintsPredicates.onFieldAccess(Class, String)
with similar semantics.since 7.0 in favor ofReflectionHintsPredicates.onFieldAccess(Field)
with similar semantics.since 7.0 in favor ofReflectionHintsPredicates.onFieldAccess(String, String)
with similar semantics.since 7.0 in favor ofReflectionHintsPredicates.onMethodInvocation(Class, String)
orReflectionHintsPredicates.onType(Class)
.since 7.0 in favor ofReflectionHintsPredicates.onMethodInvocation(Method)
orReflectionHintsPredicates.onType(Class)
.since 7.0 in favor ofReflectionHintsPredicates.onMethodInvocation(String, String)
orReflectionHintsPredicates.onType(Class)
.no longer used by ASM.this method is superseded byClassWriter.newHandle(int, String, String, String, boolean)
.Only to keep backward compatibility.as of 5.2 since it is superseded by theMergedAnnotations
APIas of 5.2 since it is superseded by theMergedAnnotations
APIas of 5.2 since it is superseded by theMergedAnnotations
APIas of 5.2 since it is superseded by theMergedAnnotations
APIas of 5.2 since it is superseded by theMergedAnnotations
APIas of 5.2 since it is superseded by theMergedAnnotations
APIas of 5.2 since it is superseded by theMergedAnnotations
APIas of 5.2 since it is superseded by theMergedAnnotations
APIas of 5.2 since it is superseded by theMergedAnnotations
APIas of 5.2 since it is superseded by theMergedAnnotations
APIas of 5.2, please implementDecoder.decode(DataBuffer, ResolvableType, MimeType, Map)
insteadas of 5.1 in favor ofEnvironment.acceptsProfiles(Profiles)
orEnvironment.matchesProfiles(String...)
since 5.2 in favor ofmethodParameter.withContainingClass(implementationClass).getParameterType()
as of 6.0, in favor ofDataBuffer.toByteBuffer(ByteBuffer)
,DataBuffer.readableByteBuffers()
, orDataBuffer.writableByteBuffers()
.as of 6.0, in favor ofDataBuffer.toByteBuffer(int, ByteBuffer, int, int)
,DataBuffer.readableByteBuffers()
, orDataBuffer.writableByteBuffers()
.as of 6.0, in favor ofDataBuffer.ensureWritable(int)
, which has different semanticssince 6.0, in favor ofDataBuffer.ensureWritable(int)
as of 6.0, in favor ofDataBuffer.split(int)
, which has different semanticsas of 6.0, in favor ofDataBuffer.split(int)
, which has different semanticsas of 6.0.5, in favor ofDataBuffer.toByteBuffer(ByteBuffer)
as of 6.0.5, in favor ofDataBuffer.toByteBuffer(int, ByteBuffer, int, int)
as of 6.0, in favor ofDataBufferFactory.allocateBuffer(int)
as of 6.0 in favor ofSpringFactoriesLoader.load(Class, ArgumentResolver, FailureHandler)
since 5.2 in favor of retaining the original MethodParameter and usingMethodParameter.nested(Integer)
if nesting is requiredas of 5.0, in favor ofMethodParameter.forExecutable(java.lang.reflect.Executable, int)
since 5.2 in favor ofMethodParameter.nested(Integer)
since 5.2 in favor ofMethodParameter.withTypeIndex(int)
as of 6.0, in favor of custom exception messages with selective inclusion of cause messagesas of 5.3.16 since the common executors do not support start timeoutsas of 5.2, in favor of custom (possibly narrower) checks such as for a Spring AOP proxyas of 5.2, in favor of custom (possibly narrower) checks or simply a check for containingClassUtils.CGLIB_CLASS_SEPARATOR
as of 5.2, in favor of custom (possibly narrower) checks or simply a check for containingClassUtils.CGLIB_CLASS_SEPARATOR
in favor ofConcurrentLruCache.capacity()
as of 6.0.as of 6.1 in favor ofArrays.hashCode(boolean[])
as of 6.1 in favor ofArrays.hashCode(byte[])
as of 6.1 in favor ofArrays.hashCode(char[])
as of 6.1 in favor ofArrays.hashCode(double[])
as of 6.1 in favor ofArrays.hashCode(float[])
as of 6.1 in favor ofArrays.hashCode(int[])
as of 6.1 in favor ofArrays.hashCode(long[])
as of 6.1 in favor ofArrays.hashCode(short[])
as of 6.1 in favor ofArrays.hashCode(Object[])
This utility uses Java Object Serialization, which allows arbitrary code to be run and is known for being the source of many Remote Code Execution (RCE) vulnerabilities.Prefer the use of an external tool (that serializes to JSON, XML, or any other format) which is regularly checked and updated for not allowing RCE.
as of 6.1, in favor ofStopWatch.lastTaskInfo()
as of 6.1, in favor ofStopWatch.lastTaskInfo()
as of 6.1, in favor ofStopWatch.lastTaskInfo()
as of 6.1, in favor ofStopWatch.lastTaskInfo()
as of 6.0 in favor ofInputStream.nullInputStream()
as of 5.3, in favor ofStringUtils.hasLength(String)
andStringUtils.hasText(String)
(orObjectUtils.isEmpty(Object)
)since 6.0, in favor ofString.stripLeading()
since 6.0, in favor ofString.stripTrailing()
since 6.0, in favor ofString.strip()
-
Deprecated ConstructorsConstructorDescriptionthis constructor has been superseded by
Handle(int, String, String, String, boolean)
.since 5.2 in favor of the factory methodAnnotationMetadata.introspect(Class)
since 5.2 in favor of the factory methodAnnotationMetadata.introspect(Class)
. UseMergedAnnotation.asMap
fromStandardAnnotationMetadata.getAnnotations()
rather thanAnnotatedTypeMetadata.getAnnotationAttributes(String)
ifnestedAnnotationsAsMap
isfalse
since 5.2 in favor ofStandardAnnotationMetadata
since 5.2 in favor of obtaining instances viaAnnotationMetadata
-
Deprecated Enum ConstantsEnum ConstantDescriptionwith no replacement since introspection is included when
adding a reflection hint for a type
.with no replacement since introspection is included whenadding a reflection hint for a type
.in favor ofMemberCategory.ACCESS_DECLARED_FIELDS
with similar semantics.with no replacement since introspection is included whenadding a reflection hint for a type
.with no replacement since introspection is added by default whenadding a reflection hint for a type
.with no replacement since introspection is included whenadding a reflection hint for a type
.with no replacement since introspection is added by default whenadding a reflection hint for a type
.with no replacement since introspection is included whenadding a reflection hint for a type
.in favor ofMemberCategory.ACCESS_PUBLIC_FIELDS
with similar semantics.