Sébastien Deleuze
d8ed7c7906
Merge branch '6.0.x'
2023-11-09 13:11:58 +01:00
Sébastien Deleuze
620f558547
Register hints for superclass in BindingReflectionHintsRegistrar
...
Closes gh-31552
2023-11-09 13:11:36 +01:00
Sam Brannen
b7c579954c
Merge branch '6.0.x'
...
# Conflicts:
# spring-core/src/main/java/org/springframework/core/annotation/AnnotationTypeMapping.java
2023-11-08 13:48:22 +01:00
lorenzsimon
6a7a0bddb7
Restore support for recursive annotations in Kotlin
...
This commit reinstates support for recursive annotations in Kotlin.
See gh-28012
See gh-28618
See gh-31400
Closes gh-31518
2023-11-08 13:28:28 +01:00
Sam Brannen
9759bf5964
Merge branch '6.0.x'
2023-11-07 17:13:46 +01:00
Sam Brannen
5752e03d97
Polishing
2023-11-07 16:58:21 +01:00
wakingrufus
8c77e398b6
Add extension for PropertyResolver#getProperty(String, Class<T>, T)
...
Allows Kotlin caller to get a non-nullable property,
using a default value when the property is not set.
A method already exists on PropertyResolver which does this,
but takes a Class parameter.
The extension method can eliminate the parameter via reified type,
similar to the other extension methods which exist already.
Closes gh-31523
2023-11-06 15:14:16 +01:00
Sébastien Deleuze
34e5512ff6
Enable PropertyResolverExtensionsKotlinTests
...
Closes gh-31553
2023-11-06 15:14:16 +01:00
Sam Brannen
b3a6dbaab3
Polishing
2023-11-04 14:45:09 +01:00
Sam Brannen
ed49f86dfb
Remove obsolete code in ConcurrentReferenceHashMapTests
2023-11-04 14:38:30 +01:00
Stéphane Nicoll
24aa6163f0
Polish
2023-11-03 12:10:01 +01:00
Stéphane Nicoll
9c5dcad0e5
Polish
2023-11-02 11:45:07 +01:00
Stéphane Nicoll
199d5e5f37
Polish
2023-10-31 13:02:01 +01:00
Johnny Lim
2b750926c3
Polishing
...
Closes gh-31522
2023-10-30 15:05:20 +01:00
Sam Brannen
44b98c6a8b
Polish PatternMatchUtils[Tests]
2023-10-27 17:44:44 +02:00
Sam Brannen
555404e679
Polishing
2023-10-25 16:36:53 +02:00
Stéphane Nicoll
6585f1a208
Merge branch '6.0.x'
2023-10-25 11:23:45 +02:00
Stéphane Nicoll
84c28995fb
Improve documentation for the default profile
...
Closes gh-29071
2023-10-25 11:20:21 +02:00
Juergen Hoeller
83870e35d1
TypeDescriptor/ResolvableType cache in GenericTypeAwarePropertyDescriptor
...
Closes gh-31490
2023-10-24 23:13:19 +02:00
Juergen Hoeller
93b0b66735
Merge branch '6.0.x'
...
# Conflicts:
# spring-beans/src/main/java/org/springframework/beans/BeanUtils.java
# spring-core/src/main/java/org/springframework/core/ResolvableType.java
# spring-core/src/test/java/org/springframework/core/ResolvableTypeTests.java
2023-10-24 22:58:31 +02:00
Juergen Hoeller
925fa0272b
Polishing
2023-10-24 22:53:44 +02:00
Juergen Hoeller
795ce1658c
Consistent Class and array matching with Class comparison shortcut
...
Closes gh-31487
2023-10-24 16:42:52 +02:00
Juergen Hoeller
cf3a25bfac
Merge branch '6.0.x'
2023-10-23 17:34:45 +02:00
Juergen Hoeller
6bdf7ad36a
Polishing
2023-10-23 17:32:45 +02:00
Sam Brannen
2d792f000a
Polish "Apply SingleSpaceSeparator Checkstyle module"
...
See gh-31469
2023-10-22 14:18:18 +02:00
Johnny Lim
64e9fcad53
Apply SingleSpaceSeparator Checkstyle module
...
This commit also fixes its violations.
Closes gh-31469
2023-10-22 14:09:57 +02:00
Sam Brannen
37e6fe5b64
Update copyright headers
2023-10-22 11:28:40 +02:00
Brian Clozel
daaccce918
Merge branch '6.0.x'
2023-10-19 16:07:41 +02:00
Brian Clozel
6ec264252b
Ensure consistent value count in ConcurrentReferenceHashMap#Segment
...
Prior to this commit, the `ConcurrentReferenceHashMap#Segment` would
recalculate its element count during the restructure phase by
subtracting the number of polled elements from the queue to the current
count.
Later, the newly restructured `references` array would only contain
references that 1) are not in the set of elements to purge and
2) that hold a non-null value.
The issues with this approach are multiple. The newly calculated count
is only an estimate, as some situations can make it invalid, even
temporarily.
* since we initially collected all elements to be purged from the queue,
the GC might have collected new values. This means that we might
filter out more references that we initially intended to
* because the restructure operation re-creates new references for all
elements in the original array, we might later get references from the
queue that are not in the array anymore. This could lead to
"duplicate" removals for the same value
Because several methods in the Segment class have special no-op behavior
when `count == 0`, an invalid count can lead to keys appearing missing
when they are actually still present. In some scenarios, this can
decrease the performance of the cache since values need to be
recalculated.
This commit fixes this inconsistency count issue by first using an
estimate in order to decide whether the array needs a resize and then by
counting the actual numbers of elements inserted in the restructured
array as the new count.
Fixes gh-31373
2023-10-19 15:54:31 +02:00
Johnny Lim
919faa2ce2
Order modifiers to align with JLS
...
This commit also applies Checkstyle ModifierOrder to enforce it.
See gh-31368
2023-10-17 16:13:56 +02:00
Brian Clozel
33deaff108
Move performance test to JMH benchmark
...
This commit removes an ignored performance test in the
`ConcurrentReferenceHashMap` test suite and converts it to a JMH
benchmark.
2023-10-17 10:42:02 +02:00
Sam Brannen
32b4f55d92
Update copyright headers
2023-10-16 16:19:55 +02:00
Sam Brannen
8e5f39b439
Align with StackWalker use in MergedAnnotationsTests.getFromMethodWithBridgeMethod()
2023-10-15 17:53:19 +02:00
Juergen Hoeller
0eb92c1267
Merge branch '6.0.x'
2023-10-15 16:10:12 +02:00
Juergen Hoeller
7a60e2024b
BeanCopier sets name prefix for public classes as well
...
Includes consistent formatting of Spring-patched files.
Closes gh-28699
2023-10-15 16:09:17 +02:00
Juergen Hoeller
4458799e06
Upgrade to ASM 9.6
...
Closes gh-31431
2023-10-15 16:04:44 +02:00
Johnny Lim
15f7e8ef2f
Fix typo in ClassUtils.forName()
...
See gh-31258
Closes gh-31428
2023-10-14 17:43:06 +02:00
OnlyWick
eafbcfd385
Remove redundant static declaration on Search class
...
Closes gh-31381
2023-10-11 13:01:21 +02:00
Juergen Hoeller
de6692e7d8
Merge branch '6.0.x'
...
# Conflicts:
# spring-core/src/main/java/org/springframework/core/annotation/AnnotationTypeMapping.java
2023-10-10 21:58:31 +02:00
Juergen Hoeller
5459304a4b
Re-introduce support for annotation declarations with self references
...
Closes gh-31400
2023-10-10 21:54:58 +02:00
Johnny Lim
8ed302bfa4
Add @since tags for DataBufferUtils.outputStreamPublisher() methods
...
See gh-31184
Closes gh-31376
2023-10-08 18:09:21 +02:00
Stéphane Nicoll
ae731fbb78
Merge branch '6.0.x'
2023-10-05 16:57:04 +02:00
Stéphane Nicoll
19fd8159b2
Improve Javadoc of MethodParameter#getAnnotatedElement
...
This commit adds a reference to the method that can be used to get
the AnnotatedElement at the parameter level.
Closes gh-30397
2023-10-05 16:56:37 +02:00
Arjen Poutsma
59d123a18e
Introduce OutputStream BodyInserter
...
This commit introduces a BodyInserter that inssert any bytes written to
an output stream to the body of an output message.
Closes gh-31184
2023-10-05 15:31:08 +02:00
Sam Brannen
74fc8bd12d
Polish SimpleAliasRegistryTests
...
See gh-31348
2023-10-03 15:29:22 +02:00
Enrico Freni
d507590abf
Add missing unit tests for SimpleAliasRegistry
...
Closes gh-31348
2023-10-03 15:13:42 +02:00
Johnny Lim
4a802c4e1f
Add Javadoc since for ExponentialBackOff.DEFAULT_MAX_ATTEMPTS
...
See gh-31351
2023-10-02 17:04:05 +02:00
Juergen Hoeller
a3e13c8ba8
Merge branch '6.0.x'
...
# Conflicts:
# spring-core/src/main/java/org/springframework/util/backoff/ExponentialBackOff.java
2023-09-29 15:01:43 +02:00
Juergen Hoeller
407113945d
Polishing
2023-09-29 14:58:02 +02:00
Sam Brannen
47ed4e6c78
Merge branch '6.0.x'
2023-09-27 13:19:39 +02:00