Juergen Hoeller
4f02be263f
Polishing
2 years ago
Juergen Hoeller
05d9b52b19
Polishing
2 years ago
Sébastien Deleuze
8b51b36729
Perform NullAway build-time checks in more modules
...
This commit enables null-safety build-time checks in
all remaining modules except spring-test.
See gh-32475
2 years ago
Sébastien Deleuze
290a41d398
Refine null-safety in more modules
...
This commit refines the null-safety in all remaining modules
except spring-test.
See gh-32475
2 years ago
Juergen Hoeller
e9110c0729
Polishing
2 years ago
Juergen Hoeller
3d7ef3ebfc
Avoid storage of null marker per method for proxy decision purposes
...
Includes missing isCandidateClass support on JCacheOperationSource.
Closes gh-20072
2 years ago
Sam Brannen
a85bf3185e
Remove APIs deprecated for removal in 6.2
...
This commit removes the following obsolete and deprecated APIs.
- org.springframework.util.Base64Utils
- org.springframework.cache.jcache.interceptor.JCacheOperationSourcePointcut
- org.springframework.http.client.AbstractClientHttpResponse
- org.springframework.http.client.ClientHttpResponse.getRawStatusCode()
- org.springframework.http.client.observation.ClientHttpObservationDocumentation.HighCardinalityKeyNames.CLIENT_NAME
- org.springframework.web.reactive.function.client.ClientHttpObservationDocumentation.HighCardinalityKeyNames.CLIENT_NAME
- org.springframework.web.filter.reactive.ServerWebExchangeContextFilter.get(Context)
- org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler.handleBindException(...)
- org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver.handleBindException(...)
Closes gh-30608
2 years ago
Stéphane Nicoll
11c8b22c5a
Polish
2 years ago
Juergen Hoeller
5f8a031c22
Introduce "spring.cache.reactivestreams.ignore" escape hatch
...
Closes gh-31861
2 years ago
Juergen Hoeller
824bc09d11
Actual caching of null values in retrieve(key, valueLoader)
...
See gh-31637
2 years ago
Juergen Hoeller
e64b81eec4
Revised handling of allowNullValues for asynchronous retrieval
...
Includes revised cacheNames javadoc and equals/hashCode for SimpleValueWrapper.
See gh-31637
2 years ago
Stéphane Nicoll
dd97dee7fd
Polish
2 years ago
Johnny Lim
64e9fcad53
Apply SingleSpaceSeparator Checkstyle module
...
This commit also fixes its violations.
Closes gh-31469
2 years ago
Stéphane Nicoll
2fbcff8919
Prevent ValueLoaderEntryProcessor to be created for each get call
...
Closes gh-31250
3 years ago
Stéphane Nicoll
f79bc7b14d
Implement JCacheCache#putIfAbsent as atomic operation
...
This commit modifies putIfAbsent to use an EntryProcessor that
guarantees that the operation is atomic.
Closes gh-21591
3 years ago
Stéphane Nicoll
978c409d85
Polish contribution
...
See gh-23651
3 years ago
Rune Flobakk
f67fad4c14
Add default methods to MailSender and JavaMailSender when appropriate
...
send(..) -methods of JavaMailSenderImpl which is only delegating to
other methods are pulled up as default methods in the interfaces
JavaMailSender and MailSender, to make these interfaces require fewer
methods to implement.
See gh-23651
3 years ago
Stephane Nicoll
01f717375b
Introduce ObjectUtils#nullSafeHash(Object... element)
...
This commit deprecates the various nullSafeHashCode methods taking array
types as they are superseded by Arrays.hashCode now. This means that
the now only remaining nullSafeHashCode method does not trigger a
warning only if the target type is not an array. At the same time, there
are multiple use of this method on several elements, handling the
accumulation of hash codes.
For that reason, this commit also introduces a nullSafeHash that takes
an array of elements. The only difference between Objects.hash is that
this method handles arrays.
The codebase has been reviewed to use any of those two methods when it
is possible.
Closes gh-29051
3 years ago
Juergen Hoeller
2ce75dc415
Polishing
3 years ago
Sam Brannen
81181c346a
Assert SimpleTriggerFactoryBean.setMisfireInstruction() values
...
See gh-30851
3 years ago
Sam Brannen
1378cce9fb
Assert CronTriggerFactoryBean.setMisfireInstruction() values
...
See gh-30851
3 years ago
Juergen Hoeller
3a9e0ea8a7
Polishing
3 years ago
Juergen Hoeller
ba46d2bf21
Polishing
3 years ago
Juergen Hoeller
4ce1ac0dcb
Polishing
3 years ago
Juergen Hoeller
f99faac073
Add caching annotation support for CompletableFuture and reactive return values
...
Includes CompletableFuture-based retrieve operations on Spring's Cache interface.
Includes support for retrieve operations on CaffeineCache and ConcurrentMapCache.
Includes async cache mode option on CaffeineCacheManager.
Closes gh-17559
Closes gh-17920
Closes gh-30122
3 years ago
Juergen Hoeller
2f33e77ab4
Consistent equals/hashCode style (and related polishing)
3 years ago
Sam Brannen
28e63e9279
Polishing
3 years ago
Sam Brannen
11de70ed08
Update Javadoc for SimpleTriggerFactoryBean.setMisfireInstructionName()
...
org.quartz.Trigger#MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY is also
supported.
3 years ago
Sam Brannen
9283fd2162
Update Javadoc for CronTriggerFactoryBean.setMisfireInstructionName()
...
org.quartz.Trigger#MISFIRE_INSTRUCTION_IGNORE_MISFIRE_POLICY is also
supported.
3 years ago
Sam Brannen
d6230824cb
Stop using Constants utility in SimpleTriggerFactoryBean
...
See gh-30851
3 years ago
Sam Brannen
edba535c8b
Stop using Constants utility in CronTriggerFactoryBean
...
See gh-30851
3 years ago
Juergen Hoeller
60865eae4b
Align ConcurrentMapCacheManager locking behavior with CaffeineCacheManager
...
Closes gh-30780
3 years ago
Juergen Hoeller
6931106c5e
Redesign inner Pointcut implementations as standalone classes
...
Avoids exposure of implicit Advisor instance state in Pointcut instance.
See gh-30621
3 years ago
Sam Brannen
6dfd330fa5
Polish JavaMailSenderTests
3 years ago
Juergen Hoeller
697d5e6247
Configuration options for virtual threads (on JDK 21)
...
VirtualThreadDelegate built on JDK 21 for multi-release jar.
Includes dedicated VirtualThreadTaskExecutor as lean option.
Includes setVirtualThreads flag on SimpleAsyncTaskExecutor.
Includes additional default methods on AsyncTaskExecutor.
Closes gh-30241
3 years ago
Juergen Hoeller
d39e44c209
Deprecate AutowireCapableBeanFactory.createBean(Class, int, boolean)
...
Includes consistent usage of createBean(Class) in SpringBeanJobFactory and SpringBeanContainer.
Closes gh-30345
See gh-29855
See gh-30041
3 years ago
Brian Clozel
6cd67412cc
Avoid lock contention in CaffeineCacheManager
...
Prior to this commit, using a dynamic `CaffeineCacheManager` would rely
on `ConcurrentHashMap#computeIfAbsent` for retrieving and creating cache
instances as needed. It turns out that using this method concurrently
can cause lock contention even when all known cache instances are
instantiated.
This commit avoids using this method if the cache instance already
exists and avoid storing `null` entries in the map. This change reduces
lock contention and the overall HashMap size in the non-dynamic case.
Fixes gh-30066
3 years ago
Sam Brannen
162c09d036
Apply "instanceof pattern matching" in remainder of spring-context-support module
...
See gh-30067
3 years ago
Juergen Hoeller
f8cb0fa2a0
Custom resolution of preferred constructors for createBean(Class)
...
Avoids side effects of traditional AUTOWIRE_CONSTRUCTOR algorithm.
Closes gh-30041
3 years ago
Sam Brannen
2e1374b459
Update copyright headers
3 years ago
Johnny Lim
431ae03447
Polish
...
Closes gh-29928
3 years ago
Juergen Hoeller
0e8838db90
Flexible constructor resolution in AutowireCapableBeanFactory.createBean(Class)
...
Closes gh-29855
See gh-29823
3 years ago
Sam Brannen
a4956dfe26
Update copyright headers
3 years ago
Krzysztof Krason
afb8a0d1b1
Use new Java features (switch expressions, text blocks, new JDK methods)
...
Closes gh-29747
3 years ago
Sam Brannen
ad60164911
Update copyright headers for source code changed since August 2022
...
The changes in this commit were performed using the newly introduced
update_copyright_headers.sh script.
3 years ago
Sam Brannen
43f8d9e084
Apply 'instanceof pattern matching'
3 years ago
Sam Brannen
abf3400c07
Use Assert.state() where appropriate
3 years ago
Sam Brannen
eb91d21ada
Polishing
3 years ago
Steve Gerhardt
fded79d807
Make SimpleMailMessage setters parameters nullable
...
Closes gh-29139
3 years ago
Sam Brannen
321092ce6f
Consistent use of @Deprecated(since = "6.0")
4 years ago