Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionas of 6.0.12 in favor of the builderas of 6.0.1, in favor of
StandardReflectionParameterNameDiscoverer(with the "-parameters" compiler flag)ConcurrentExecutorAdapteris obsolete and will be removed in Spring Framework 6.1as of 4.3.7, in favor ofAssert.doesNotContain(String, String, String); to be removed in 6.1as of 4.3.7, in favor ofAssert.hasLength(String, String); to be removed in 6.1as of 4.3.7, in favor ofAssert.hasText(String, String); to be removed in 6.1as of 4.3.7, in favor ofAssert.isNull(Object, String); to be removed in 6.1as of 4.3.7, in favor ofAssert.isTrue(boolean, String); to be removed in 6.1as of 4.3.7, in favor ofAssert.noNullElements(Object[], String); to be removed in 6.1as of 4.3.7, in favor ofAssert.notEmpty(Object[], String); to be removed in 6.1as of 4.3.7, in favor ofAssert.notEmpty(Collection, String); to be removed in 6.1as of 4.3.7, in favor ofAssert.notEmpty(Map, String); to be removed in 6.1as of 4.3.7, in favor ofAssert.notNull(Object, String); to be removed in 6.1as of 4.3.7, in favor ofAssert.state(boolean, String); to be removed in 6.1as of Spring Framework 6.0.5 in favor ofBase64; scheduled for removal in 6.2As of 6.0, with no direct replacementAs of 6.0, with no direct replacement
-
Deprecated InterfacesInterfaceDescriptionas of 6.0, in favor of
AsyncTaskExecutor.submitCompletable(Runnable)andAsyncTaskExecutor.submitCompletable(Callable)as of 6.0, in favor ofCompletableFuture.whenComplete(BiConsumer)as of 6.0, in favor ofCompletableFutureas of 6.0, in favor ofCompletableFuture.whenComplete(BiConsumer)as of 6.0, in favor ofCompletableFuture.whenComplete(BiConsumer)
-
Deprecated ClassesClassDescriptionas of 6.0.1, in favor of
StandardReflectionParameterNameDiscoverer(with the "-parameters" compiler flag)ConcurrentExecutorAdapteris obsolete and will be removed in Spring Framework 6.1as of Spring Framework 6.0.5 in favor ofBase64; scheduled for removal in 6.2as of 6.0, with no concrete replacementas of 6.0, with no concrete replacementas of 6.0, in favor ofCompletableFutureas of 6.0, with no concrete replacementas of 6.0, with no concrete replacementas of 6.0, in favor ofMono.toFuture()as of 6.0, in favor ofCompletableFutureAs of 6.0, with no direct replacement
-
Deprecated ExceptionsExceptionsDescriptionas of 5.3.16 since the common executors do not support start timeouts
-
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 theMergedAnnotationsmodel always ignores lang annotations according to theAnnotationFilter.PLAINfilter (for efficiency reasons)as of 5.3.16 along withAsyncTaskExecutor.execute(Runnable, long)as of 5.3.16 along withAsyncTaskExecutor.execute(Runnable, long)As of 6.0, with no direct replacement
-
Deprecated MethodsMethodDescriptionthis method is superseded by
ClassWriter.newHandle(int, String, String, String, boolean).Only to keep backward compatibility.as of 5.2 since it is superseded by theMergedAnnotationsAPIas of 5.2 since it is superseded by theMergedAnnotationsAPIas of 5.2 since it is superseded by theMergedAnnotationsAPIas of 5.2 since it is superseded by theMergedAnnotationsAPIas of 5.2 since it is superseded by theMergedAnnotationsAPIas of 5.2 since it is superseded by theMergedAnnotationsAPIas of 5.2 since it is superseded by theMergedAnnotationsAPIas of 5.2 since it is superseded by theMergedAnnotationsAPIas of 5.2 since it is superseded by theMergedAnnotationsAPIas of 5.2 since it is superseded by theMergedAnnotationsAPIas 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 messagesin favor ofAsyncTaskExecutor.submitCompletable(Runnable)in favor ofAsyncTaskExecutor.submitCompletable(Callable)as of 5.3.16 since the common executors do not support start timeoutsas of 4.3.7, in favor ofAssert.doesNotContain(String, String, String); to be removed in 6.1as of 4.3.7, in favor ofAssert.hasLength(String, String); to be removed in 6.1as of 4.3.7, in favor ofAssert.hasText(String, String); to be removed in 6.1as of 4.3.7, in favor ofAssert.isNull(Object, String); to be removed in 6.1as of 4.3.7, in favor ofAssert.isTrue(boolean, String); to be removed in 6.1as of 4.3.7, in favor ofAssert.noNullElements(Object[], String); to be removed in 6.1as of 4.3.7, in favor ofAssert.notEmpty(Object[], String); to be removed in 6.1as of 4.3.7, in favor ofAssert.notEmpty(Collection, String); to be removed in 6.1as of 4.3.7, in favor ofAssert.notEmpty(Map, String); to be removed in 6.1as of 4.3.7, in favor ofAssert.notNull(Object, String); to be removed in 6.1as of 4.3.7, in favor ofAssert.state(boolean, String); to be removed in 6.1as 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_SEPARATORas of 5.2, in favor of custom (possibly narrower) checks or simply a check for containingClassUtils.CGLIB_CLASS_SEPARATORas of 6.0, in favor ofCompletableFuture.whenComplete(BiConsumer)as of 6.0, in favor ofCompletableFuture.whenComplete(BiConsumer)in favor ofConcurrentLruCache.capacity()as of 6.0.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.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 ConstructorsConstructorDescriptionas of 6.0.12 in favor of the builderthis 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.asMapfromStandardAnnotationMetadata.getAnnotations()rather thanAnnotatedTypeMetadata.getAnnotationAttributes(String)ifnestedAnnotationsAsMapisfalsesince 5.2 in favor ofStandardAnnotationMetadatasince 5.2 in favor of obtaining instances viaAnnotationMetadata