Maksim Sasnouski
abdccffa39
Fix Javadoc
...
This commit fixes various Javadoc issues across the code base.
See gh-32403
2 years ago
Juergen Hoeller
c1287d48e2
Polishing
2 years ago
Juergen Hoeller
19fec0633f
Local root directory and jar caching in PathMatchingResourcePatternResolver
...
Closes gh-21190
2 years ago
Sam Brannen
ae6c64abc5
Fix Javadoc errors
2 years ago
Sébastien Deleuze
579dbc48d7
Optimize Coroutine invocations
...
KClass instantiation in CoroutinesUtils is suboptimal, and should be
replaced by KTypes#isSubtypeOf checks using pre-instantiated types for
Flow, Mono and Publisher.
This commit impact on performances is significant since a throughput
increase between 2x and 3x has been measured on basic endpoints.
Closes gh-32390
2 years ago
Sébastien Deleuze
c1d4b610ca
Refine Kotlin inline class optimizations
...
Closes gh-32334
2 years ago
Sam Brannen
b32a2cadfb
Update class-level Javadoc for ParameterNameDiscoverer
2 years ago
Juergen Hoeller
a0ae849856
Polishing
2 years ago
ali dandach
eb01cc0d9d
Use String#isEmpty where feasible
...
This commit replaces checks for empty strings ("".equals(...)) with the
String#isEmpty method.
Closes gh-32377
2 years ago
Sam Brannen
c29c67839b
Cache parameterTypes in ClassUtils.getInterfaceMethodIfPossible
2 years ago
Arjen Poutsma
6d9aba88d0
Fix typo
...
See gh-32360
2 years ago
Arjen Poutsma
646bd7f893
Document StringUtils::uriDecode limitations
...
Closes gh-32360
2 years ago
Juergen Hoeller
4300fec023
Restore ability to return original method at ClassUtils level as well
...
Closes gh-32365
2 years ago
Juergen Hoeller
e9110c0729
Polishing
2 years ago
Juergen Hoeller
24759a75f4
Restore ability to return original method for proxy-derived method
...
Closes gh-32365
2 years ago
Sébastien Deleuze
516a203703
Support nullable Kotlin value class arguments
...
This commit skips the value class parameter instantiation for nullable
types when a null argument is passed.
Closes gh-32353
2 years ago
Juergen Hoeller
390fe0fe78
Add support for resolving multiple bounds in type variables
...
Closes gh-22902
See gh-32327
2 years ago
Stéphane Nicoll
ac1a030c35
Make PlaceholderResolutionException extend from IllegalArgumentException
...
To smooth upgrade from 6.1.x, this commit makes sure that code that used
to catch an IAE to ignore a faulty placeholder resolution still works.
See gh-9628
2 years ago
Sébastien Deleuze
85a781d517
Instantiate value class parameters with Kotlin reflection
...
In order to invoke the init block and to improve the maintainability.
Closes gh-32324
2 years ago
Sébastien Deleuze
45c21042f6
Optimize Kotlin inline class checks
...
This commit fixes a performance regression caused by gh-31698,
and more specifically by KClass#isValue invocations which are slow since
they load the whole module to find the class to get the descriptor.
After discussing with the Kotlin team, it has been decided that only
checking for the presence of `@JvmInline` annotation is enough for
Spring use case.
As a consequence, this commit introduces a new
KotlinDetector#isInlineClass method that performs such check, and
BeanUtils, CoroutinesUtils and WebMVC/WebFlux InvocableHandlerMethod
have been refined to leverage it.
Closes gh-32334
2 years ago
Juergen Hoeller
479879c53a
Polishing
2 years ago
Juergen Hoeller
9198774f13
Detect wildcard without bounds returned from VariableResolver as well
...
See gh-32327
See gh-20727
2 years ago
Juergen Hoeller
260404b7f2
Consistently detect wildcard without bounds as unresolvable
...
Closes gh-32327
See gh-20727
2 years ago
Sam Brannen
f59c4023e9
Polishing
2 years ago
Sam Brannen
eab1a3dc6b
Fix BridgeMethodResolverTests.isBridgeMethodFor() in Eclipse IDE
2 years ago
Sam Brannen
4b5e96578d
Extract runningInEclipse() into IdeUtils test fixture
2 years ago
Sam Brannen
122372c580
Spring cleaning: update copyright headers
2 years ago
Sam Brannen
c98bebd6d3
Spring cleaning: add missing @Override annotations
2 years ago
Sam Brannen
d0ffc16efc
Spring cleaning: avoid unnecessary static imports
2 years ago
Sam Brannen
4bd1485ce4
Spring cleaning: use method references
2 years ago
Sam Brannen
4339c8eac2
Spring cleaning: use diamond operator
2 years ago
Arjen Poutsma
aee03c5201
Use composite collections in attribute merging
...
This commit introduces composite collections (i.e. Collection, Set, Map)
and uses these composites in request predicates, where before new
collections were instantiated.
Closes gh-32245
2 years ago
Sam Brannen
644887e094
Polish (Linked)HashSet usage
...
See gh-32291
2 years ago
Sam Brannen
b9c304b890
Polish contribution
...
See gh-32291
2 years ago
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
2 years ago
Sam Brannen
3fb170058f
Polish contribution
...
See gh-32294
2 years ago
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
2 years ago
Arjen Poutsma
c077805761
Set correct capacity in DefaultDataBuffer::setNativeBuffer
...
Closes gh-30984
2 years ago
Arjen Poutsma
70004e9ad0
Polishing external contribution
...
Change position and limit on duplicate, rather than source.
See gh-30967
Closes gh-32009
2 years ago
injae-kim
969d0bd08b
Set correct limit in DefaultDataBuffer::getNativeBuffer
...
Closes gh-30967
2 years ago
Juergen Hoeller
3aae7a66e6
Polishing
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
Sam Brannen
6d5bf6d9b3
Ensure alias resolution in SimpleAliasRegistry depends on registration order
...
Closes gh-32024
2 years ago
Sam Brannen
ea4e7df9ca
Consistently declare ignoreUnresolvablePlaceholders as last argument
2 years ago
Sam Brannen
7c07c43201
Polishing
2 years ago
Sam Brannen
fc9a118406
Polish SimpleCommandLinePropertySource support
2 years ago
Juergen Hoeller
ea3573176a
Avoid infinite recursion for self-referencing generic type
...
Closes gh-32282
See gh-30079
2 years ago
Stéphane Nicoll
6b8105aef2
Update copyright year of changed files
...
See gh-32281
2 years ago
Patrick Strawderman
481283d2f1
Use Spliterator of underlying collection
...
Delegate to the spliterator method of the underlying collection in
MutablePropertyValues and MutablePropertySources. In both cases, those
collection types have specialized Spliterator implementations.
Delegating to these Spliterators also means the characteristics of the
Spliterator are properly set.
See gh-32281
2 years ago
Juergen Hoeller
7e67da8a26
Support for matching partial generics
...
Closes gh-20727
2 years ago