Deprecated API
Contents
-
ElementDescriptionas of 4.3.7, in favor of
Assert.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 6.0, with no direct replacementAs of 6.0, with no direct replacement
-
InterfaceDescriptionas 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 ofCompletableFuture
as of 6.0, in favor ofCompletableFuture.whenComplete(BiConsumer)
as of 6.0, in favor ofCompletableFuture.whenComplete(BiConsumer)
-
ClassDescriptionas of 6.0, with no concrete replacementas of 6.0, with no concrete replacementas of 6.0, in favor of
CompletableFuture
as 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 ofCompletableFuture
As of 6.0, with no direct replacement
-
ExceptionsDescriptionas of 5.3.16 since the common executors do not support start timeouts
-
FieldDescriptionUse
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)
As of 6.0, with no direct replacement
-
MethodDescriptionthis 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 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)
since 5.2 in favor ofmethodParameter.withContainingClass(implementationClass).getParameterType()
as of 6.0, in favor ofDataBuffer.toByteBuffer()
, which does not share data and returns a copy.as of 6.0, in favor ofDataBuffer.toByteBuffer(int, int)
, which does not share data and returns a copy.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, 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) checksas of 5.2, in favor of custom (possibly narrower) checksas of 5.2, in favor of custom (possibly narrower) checksas 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()
-
ConstructorDescriptionthis 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
Assert.doesNotContain(String, String, String)
; to be removed in 6.1