Spring Builds
aee29b7f30
Update copyright headers in source files
...
This commit updates Java, Kotlin, and Groovy source files to use the
"<year>-present" pattern in copyright headers.
Closes gh-35070
8 months ago
Sam Brannen
208d52d852
Introduce Checkstyle rule for separator symbol location
11 months ago
Sam Brannen
f427ac383d
(Re)suppress deprecation warnings
...
See gh-33780
1 year ago
Juergen Hoeller
022fdcd67e
Provide removeCache method on Caffeine/ConcurrentMapCacheManager
...
Closes gh-33813
1 year ago
Juergen Hoeller
9e3371ef07
Mark ListenableFuture as deprecated for removal
...
Closes gh-33808
1 year ago
Juergen Hoeller
11d4272ff4
Use Locale.ROOT consistently for toLower/toUpperCase
...
Closes gh-33708
1 year ago
Yanming Zhou
8941e2876e
Replace 'e.g.' with 'for example' in documentation and comments
...
Closes gh-33515
1 year ago
Brian Clozel
412f5f677b
Fix NPEs in MimeMessageHelper when adding files without names
...
Prior to this commit, `MimeMessageHelper` would accept `Resource`
instances as inline attachments in multipart MIME messages. If the
provided `Resource` implementation returns `null` for `getFileName()`,
the `addInLine` method would fail with a `NullPointerException` as
Jakarta activation fails to detect the content type for a null filename.
This commit falls back on "application/octet-stream" when the filename
is not known for the given resource instead of failing with an
exception.
Fixes gh-33527
1 year ago
Simon Baslé
f1a99cd968
Allow setting filename for inline elements in MimeMessageHelper
...
This change adds several overloads of `MimeMessageHelper#addInline`
which allow users to specify a file name for inline elements added from
an `InputStreamResource` or a `jakarta.activation.DataSource`.
Closes gh-33230
2 years ago
Stéphane Nicoll
e4edd3246a
Restore Freemarker support now it supports Jakarta
...
Closes gh-30186
2 years ago
Stéphane Nicoll
b0807d847e
Fix broken Javadoc reference
...
See gh-33102
2 years ago
Sam Brannen
b64edb2d2a
Update Content-Type based on encoding in MVC FreeMarkerView
...
Closes gh-33119
2 years ago
Sam Brannen
95887c81b9
Polish naming for Charset setters in FreeMarker support
...
See gh-33102
2 years ago
Sam Brannen
73c0783df1
Allow encoding to be set with a Charset in FreeMarker support
...
Closes gh-33102
2 years ago
Sam Brannen
d133ab60ee
Improve documentation regarding encoding in FreeMarker support
...
This commit also introduces integration tests to test the status quo
regarding encoding.
Closes gh-33071
2 years ago
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
2 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
2 years ago
Stéphane Nicoll
978c409d85
Polish contribution
...
See gh-23651
2 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
2 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
2 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