Sam Brannen
122372c580
Spring cleaning: update copyright headers
2024-02-23 12:21:22 +01:00
Sam Brannen
5ae6c0e8ca
Spring cleaning: avoid unnecessary super() invocations
2024-02-23 12:21:22 +01:00
Sam Brannen
c98bebd6d3
Spring cleaning: add missing @Override annotations
2024-02-23 12:20:11 +01:00
Sam Brannen
4bd1485ce4
Spring cleaning: use method references
2024-02-23 12:20:11 +01:00
Sam Brannen
4339c8eac2
Spring cleaning: use diamond operator
2024-02-23 12:20:11 +01:00
Sam Brannen
233b59f144
Polish Javadoc
2024-02-23 12:20:11 +01:00
Sam Brannen
3c00637c88
Fix @inheritDoc usage
2024-02-23 12:08:29 +01:00
Sam Brannen
644887e094
Polish (Linked)HashSet usage
...
See gh-32291
2024-02-21 16:22:31 +01:00
Sam Brannen
b9c304b890
Polish contribution
...
See gh-32291
2024-02-21 16:19:53 +01:00
Patrick Strawderman
e1a32d4ba9
Avoid resizing of fixed-size HashSet/LinkedHashSet variants
...
Add helpers to CollectionUtils for building HashSets and LinkedHashSets
that can hold an expected number of elements without needing to
resize/rehash.
Closes gh-32291
2024-02-21 16:19:53 +01:00
Patrick Strawderman
f9fe8efb2e
Use ConcurrentHashMap.newKeySet
...
In places where a ConcurrentHashMap was used as a set by wrapping it
with Collections.newSetFromMap, switch to just using the set returned
by ConcurrentHashMap.newKeySet directly.
Closes gh-32294
2024-02-21 14:08:38 +01:00
Arjen Poutsma
bc2257aaff
Invoke defaultRequest earlier in RestClient and WebClient
...
Closes gh-32053
2024-02-20 11:21:24 +01:00
rstoyanchev
b8715811f8
Write form data without charset parameter
...
This commit updates the content-type for form data to not include the
charset, unless it is different from the default charset.
Some servers don't handle charset parameter and the spec is unclear.
See gh-31781
2024-02-19 15:21:54 +01:00
Sam Brannen
71dfebbfe5
Polishing
2024-02-16 16:45:18 +01:00
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
2024-02-16 16:45:18 +01:00
Sam Brannen
ea4e7df9ca
Consistently declare ignoreUnresolvablePlaceholders as last argument
2024-02-16 15:00:32 +01:00
Sam Brannen
7c07c43201
Polishing
2024-02-16 15:00:06 +01:00
Stéphane Nicoll
aef4b21f19
Polish "Add ThreadLocalAccessor for LocaleContext and RequestAttributes"
...
See gh-32243
2024-02-15 15:57:43 +01:00
Tadaya Tsuyukubo
5bd1c1fddb
Add ThreadLocalAccessor for LocaleContext and RequestAttributes
...
Add `ThreadLocalAccessor` implementations:
- `LocaleThreadLocalAccessor`
- `RequestAttributesThreadLocalAccessor`
See gh-32243
2024-02-15 15:49:55 +01:00
Stéphane Nicoll
e3aa5b6b11
Use new implementation in PropertyPlaceholderHelper
...
This commit removes the previous implementation in favor of the new
PlaceholderParser. The only noticeable side effect is that the exception
is no longer an IllegalArgumentException, but rather the dedicated
PlaceholderResolutionException.
See gh-9628
2024-02-15 15:27:13 +01:00
Arjen Poutsma
b4bec4ca61
Allow repeatable writes in Client Interceptors
...
See gh-31449
2024-02-14 10:05:26 +01:00
Juergen Hoeller
b4153618a4
Consistent Lock field declaration (instead of ReentrantLock field type)
2024-02-13 11:07:20 +01:00
rstoyanchev
120ea0a51c
Update user info pattern
...
Closes gh-32211
2024-02-13 07:09:46 +00:00
Stéphane Nicoll
ee801d1b28
Update copyright year of changed file
...
See gh-32232
2024-02-12 10:29:16 +01:00
Olga MaciaszekSharma
eebdff23e7
Fix supportsRequestAttributes for RestClientAdapter
...
Previously, RestClientAdapter claimed that it supports request
attributes when, in fact, it does not. This commit updates the
implementation accordingly.
See gh-32232
2024-02-12 10:27:32 +01:00
Juergen Hoeller
3ecbc4de13
Polishing
2024-02-06 17:57:47 +01:00
Juergen Hoeller
81c156eefb
Replace public hasRestTemplateDefaults() method with hasBaseUri()
...
See gh-32180
2024-02-06 17:57:27 +01:00
Juergen Hoeller
cfa47fa4fb
Polishing
2024-02-06 16:46:16 +01:00
Juergen Hoeller
80949eb30f
Store known attribute names in session (for distributed sessions)
...
Closes gh-30463
2024-02-06 16:46:11 +01:00
Arjen Poutsma
c570f3b2da
Fix off-by-one error in PartEvent part count
...
This commit fixes an off-by-one error in the
PartEventHttpMessageReader, so that it no longer counts empty windows.
Closes gh-32122
2024-02-05 11:04:24 +01:00
Arjen Poutsma
e15c150696
Only copy UriBuilderFactory when customized
...
This commit ensures that, when creating a RestClient.Builder from a
RestTemplate, the UriBuilderFactory is only copied if it has been
changed from the default values.
Before this commit, the UriBuilderFactory was effectively alway copied,
resulting in not being able to use a baseUrl.
This commit also introduces a small memory optimization in
DefaultUriBuilderFactory, so that default environment variables are
created lazily.
Closes gh-32180
2024-02-02 15:16:10 +01:00
Juergen Hoeller
ae17b11b70
Preserve overridden toString result in HandlerMethod copy constructor
...
Closes gh-32184
2024-02-01 19:14:11 +01:00
Sam Brannen
521fbfdb85
Update copyright headers in contribution
2024-02-01 17:58:06 +01:00
Siddik ACIL
87377d6f3e
Fix modelAttribitePredicate typos
...
This commit replaces occurrences of modelAttribitePredicate with modelAttributePredicate
in HandlerMethodValidationException and the associated validator.
Closes gh-32183
2024-02-01 17:56:07 +01:00
Juergen Hoeller
00577ed80a
Polishing
2024-01-31 17:12:20 +01:00
Sam Brannen
067638ae6e
Introduce ClassUtils.isVoidType() utility method
2024-01-30 16:27:34 +01:00
Stéphane Nicoll
298f308ce1
Upgrade copyright year of changed file
...
See gh-32157
2024-01-30 15:59:06 +01:00
jee14
6ffb74def3
Wrap ternary operator within parantheses
...
See gh-32157
2024-01-30 15:57:51 +01:00
Sam Brannen
db535863dd
Consistently use class literals for primitive types
...
To improve consistency and avoid confusion regarding primitive types
and their wrapper types, this commit ensures that we always use class
literals for primitive types.
For example, instead of using the `Void.TYPE` constant, we now
consistently use `void.class`.
2024-01-30 15:26:12 +01:00
Sam Brannen
9eae0ba50e
Clean up warnings in build
2024-01-29 17:47:46 +01:00
Juergen Hoeller
005d5ef922
Polishing
2024-01-29 16:53:35 +01:00
Stéphane Nicoll
4b4778d569
Polish "Simplify use of Reactor's cast operator"
...
See gh-32141
2024-01-27 12:21:46 +01:00
Kai Zander
d96a63944c
Simplify use of Reactor's cast operator
...
This commit replaces filter(x -> x instanceof C).cast(C.class) with the
built-in ofType(C.class).
See gh-32141
2024-01-27 12:21:46 +01:00
Sébastien Deleuze
4f16297e45
Polishing
...
See gh-32074
2024-01-24 16:53:34 +01:00
Felipe
11898daed7
Add support for JSON streams to Kotlin Serialization
...
Closes gh-32074
2024-01-24 16:53:34 +01:00
Arjen Poutsma
f2e267b494
Guard against multiple body subscriptions
...
Before this commit, the JDK and Jetty connectors do not have any
safeguards against multiple body subscriptions. Such as check has now
been added.
Closes gh-32100
2024-01-24 14:05:20 +01:00
Juergen Hoeller
199a675692
Declare current observation context as available since 6.0.15
...
See gh-31609
See gh-31646
2024-01-24 12:40:00 +01:00
Juergen Hoeller
2f921dd13d
Declare allowPrivateNetwork as available since 5.3.32
...
See gh-28546
See gh-31974
2024-01-24 12:37:19 +01:00
Juergen Hoeller
b92877990d
Consistent nullability for concurrent result
2024-01-24 11:43:36 +01:00
Juergen Hoeller
d7778c0212
Polishing
2024-01-23 18:31:31 +01:00