Juergen Hoeller
2f33e77ab4
Consistent equals/hashCode style (and related polishing)
2023-07-19 00:35:19 +02:00
Juergen Hoeller
616f728afa
MethodIntrospector handles overriding bridge method correctly
...
Closes gh-30906
2023-07-18 12:54:59 +02:00
Sam Brannen
2ba9939bd8
Revise changes to DefaultGenerationContext and GeneratedClasses
...
In order to reduce the surface area of published APIs in the affected
classes, this commit:
- Reverts the changes made to GeneratedClasses in c354b1014d .
- Reverts the changes made to DefaultGenerationContext in a28ec3a0a8 .
- Makes the DefaultGenerationContext(DefaultGenerationContext, String)
constructor protected.
- Reworks the internals of TestContextGenerationContext to align with
the above changes.
See gh-30861
Closes gh-30895
Closes gh-30897
2023-07-15 14:43:39 +02:00
Juergen Hoeller
3a278cc66d
Polishing
2023-07-15 14:20:00 +02:00
Juergen Hoeller
6183f06846
Cache DependencyDescriptor per autowired constructor argument
...
Aligned with shortcut handling in AutowiredAnnotationBeanPostProcessor.
Includes minor MethodInvoker optimization for pre-resolved targetClass.
Closes gh-30883
2023-07-15 14:17:52 +02:00
Sam Brannen
a34f9fa66c
Update copyright headers
2023-07-15 13:10:46 +02:00
Sam Brannen
c354b1014d
Make GeneratedClasses#withFeatureNamePrefix(String) public
...
See gh-30861
Closes gh-30897
2023-07-15 12:01:56 +02:00
Sam Brannen
a28ec3a0a8
Make DefaultGenerationContext(<classes>,<files>,<hints>) constructor protected
...
See gh-30861
Closes gh-30895
2023-07-15 12:01:49 +02:00
Juergen Hoeller
75f5dac16b
Polishing
2023-07-14 12:16:37 +02:00
Juergen Hoeller
c873a597c7
Polishing
2023-07-12 19:21:44 +02:00
Sam Brannen
68f2b0ca59
Rely on auto-boxing in tests
2023-07-12 11:49:02 +02:00
Juergen Hoeller
f19433f2d8
Polishing
2023-07-11 18:01:07 +02:00
Juergen Hoeller
e2b24f3c12
Improve diagnostics for LinkageError in case of ClassLoader mismatch
...
Closes gh-25940
2023-07-11 17:50:44 +02:00
Juergen Hoeller
a102cd5f32
Tolerate isCandidateClass call with null as annotation type
...
Closes gh-30842
2023-07-09 16:52:54 +02:00
Sébastien Deleuze
b3de1b8e95
Use consistently *KotlinTests naming for Kotlin tests
...
Closes gh-30837
2023-07-08 11:02:20 +02:00
Sébastien Deleuze
fb17e283d1
Replace @link by proper KDoc class reference in tests
...
Closes gh-30836
2023-07-08 10:44:40 +02:00
Sam Brannen
826776f321
Improve assertions in DefaultConversionServiceTests
...
Specifically, we now check the actual type of a converted collection in
various assertions to ensure that converters adhere to their contracts.
2023-07-06 14:01:26 +02:00
Sam Brannen
ad05b02ff5
Update Javadoc for ObjectUtils.nullSafeConciseToString()
...
See gh-30810
2023-07-06 12:26:47 +02:00
Juergen Hoeller
b7b9f2cb6b
Expand tests for array to Collection/Set/List interface
...
See gh-28048
2023-07-05 20:15:10 +02:00
Sam Brannen
b76664e757
Support arrays, collections, & maps in ObjectUtils.nullSafeConciseToString()
...
Prior to this commit, there was no explicit support for arrays,
collections, and maps in nullSafeConciseToString(). This lead to string
representations such as the following, regardless of whether the array,
collection, or map was empty.
- char[]@1623b78d
- java.util.ImmutableCollections$List12@74fe5c40
- java.util.ImmutableCollections$MapN@10e31a9a
This commit introduces explicit support for arrays, collections, and
maps in nullSafeConciseToString(), which results in the following
empty/non-empty string representations.
- array: {} / {...}
- collection: [] / [...]
- map: {} / {...}
The reason a string representation of an array uses "{}" instead of
"[]" (like in Arrays.toString(...)) is that
ObjectUtils.nullSafeToString(<array>) already follows that convention,
and the implementation of nullSafeConciseToString() aligns with that
for the sake of consistency.
Closes gh-30810
2023-07-05 17:01:01 +02:00
Juergen Hoeller
f07b9fd217
Polishing
2023-07-04 16:52:44 +02:00
Juergen Hoeller
80a20488fd
Make File/Path tests pass on Windows
...
See gh-30806
2023-07-04 16:52:39 +02:00
Sam Brannen
3ef1b7d83c
Extend supported types in ObjectUtils.nullSafeConciseToString()
...
This commit extends the list of explicitly supported types in
ObjectUtils.nullSafeConciseToString() with the following.
- Optional
- File
- Path
- InetAddress
- Charset
- Currency
- TimeZone
- ZoneId
- Pattern
Closes gh-30805
2023-07-04 13:27:47 +02:00
Sam Brannen
08bce69d3d
Add tests for status quo in ObjectUtils.nullSafeConciseToString()
2023-07-04 13:15:56 +02:00
Yanming Zhou
56b60120fe
Stop using deprecated AbstractArchiveTask.archivePath in Gradle build
...
This commit addresses the following warning in the build.
The AbstractArchiveTask.archivePath property has been deprecated. This
is scheduled to be removed in Gradle 9.0. Please use the archiveFile
property instead. See
https://docs.gradle.org/8.1.1/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:archivePath
for more details.
Closes gh-30697
2023-07-03 17:09:48 +02:00
Sam Brannen
c95426a616
Polishing
2023-06-30 13:55:34 +02:00
Juergen Hoeller
0c39fff831
Polishing
2023-06-29 18:04:08 +02:00
Juergen Hoeller
3cb746c358
Consistently handle invocation exceptions in TypeProxyInvocationHandler
...
Closes gh-30764
2023-06-28 15:45:40 +02:00
Juergen Hoeller
9266e6d29e
Remove outdated javadoc notes on getMessage and printStackTrace
...
Closes gh-30748
2023-06-26 12:34:59 +02:00
Sam Brannen
f86a69ebfb
Update copyright headers and polish
2023-06-24 14:14:02 +02:00
Sébastien Deleuze
d3a249e34d
Reduce the delay used for Coroutines in tests
...
Closes gh-30731
2023-06-23 14:17:56 +02:00
Sébastien Deleuze
23ecb50137
Optimize KotlinReflectionParameterNameDiscoverer
...
This commit removes the intermediate list allocation.
Closes gh-30725
2023-06-23 14:17:56 +02:00
Johnny Lim
271f2dc665
Polish
...
This commit polishes a bit.
Closes gh-30691
2023-06-22 15:06:05 +02:00
Juergen Hoeller
1dfe737d0e
Avoid ResolvableType creation for interface/superclass check
...
See gh-30713
2023-06-21 17:17:58 +02:00
Juergen Hoeller
93218a06ba
Cache hasUnresolvableGenerics result for repeated checks
...
Closes gh-30713
2023-06-21 13:16:04 +02:00
Sam Brannen
4565bcd757
Update copyright headers
2023-06-15 16:19:58 +02:00
Juergen Hoeller
b9221656cc
Declare ClassLoader for DeserializingConverter constructor as nullable
...
Closes gh-30670
2023-06-14 22:27:07 +02:00
Juergen Hoeller
3171a8b0e2
Align with 5.3.28 javadoc for isSimpleValueType
...
See gh-30661
2023-06-14 11:18:18 +02:00
Juergen Hoeller
927d27b121
Consider UUID as simple value type with concise toString output
...
Closes gh-30661
2023-06-14 09:31:35 +02:00
Sébastien Deleuze
9b4e0e9837
Add missing hint for converting String to URI
...
Closes gh-30627
2023-06-09 14:14:54 +02:00
Sam Brannen
94214562d0
Polish contribution
...
See gh-30283
2023-06-07 13:15:12 +02:00
SW
be94e1a2fb
Replace switch statements with enhanced switch statements for consistency
...
Closes gh-30283
2023-06-07 13:02:08 +02:00
Sam Brannen
f2ae106c32
Update deprecation Javadoc regarding "for removal in 6.2"
...
See gh-30608
2023-06-07 12:00:27 +02:00
Juergen Hoeller
cdc4497664
Restore creation of plain HashSet/HashMap for direct HashSet/HashMap type
...
Closes gh-30596
2023-06-05 13:57:59 +02:00
Juergen Hoeller
22ef48bec2
Shorten constant names to BUILD and RUN (for consistent spelling)
...
See gh-30511
2023-06-05 10:45:02 +02:00
Sam Brannen
24fa8793b1
Update copyright headers
2023-06-04 16:36:52 +02:00
Juergen Hoeller
4b8adf2dcc
Polishing
2023-06-02 23:28:14 +02:00
Sam Brannen
e8ab53e76d
Polishing
2023-06-01 14:57:50 +02:00
Stephane Nicoll
09b2e5d0fb
Update copyright year of changed file
...
See gh-30554
2023-05-30 09:13:29 +02:00
Stefano Cordio
c6b2d2e1d9
Fix `FileSystemUtils::deleteRecursively` Javadoc
...
See gh-30554
2023-05-30 09:11:48 +02:00