Stéphane Nicoll
1f2d29ee08
Polish
2 years ago
Juergen Hoeller
43107e7eb1
Propagate arguments for dynamic prototype-scoped advice
...
Closes gh-28407
2 years ago
Sam Brannen
580d9f81e2
Polishing
2 years ago
Sam Brannen
4b6126c057
Polishing
2 years ago
Sam Brannen
476ef0c3ca
Introduce basic unit test for AutowiredAnnotationBeanPostProcessor.processInjection()
2 years ago
Stefano Cordio
be9ee9112c
Upgrade to AssertJ 3.25.1, use AssertJ BOM
...
Closes gh-31945
2 years ago
Sam Brannen
ffddbb586e
Upgrade to AssertJ 3.25.0
2 years ago
Stéphane Nicoll
e22d1efdc0
Update copyright year of changed files
...
See gh-31930
2 years ago
Johnny Lim
ff8097d37c
Polish
...
See gh-31930
2 years ago
Stéphane Nicoll
7d44a4dcad
Polish
2 years ago
Juergen Hoeller
0ad3800f54
Polishing
2 years ago
Stéphane Nicoll
eefe65d95a
Upgrade copyright year of changed files
...
See gh-31916
2 years ago
Yanming Zhou
ea5ef098cf
Use Map.computeIfAbsent() where feasible
...
See gh-31916
2 years ago
Stéphane Nicoll
adcf236a3d
Polish "Use Object.equals() where feasible"
...
See gh-31916
2 years ago
Yanming Zhou
72a9864788
Use Object.equals() where feasible
...
See gh-31916
2 years ago
Yanming Zhou
db2c532c07
Use auto boxing and unboxing where feasible
...
See gh-31916
2 years ago
Yanming Zhou
4a450c6fab
Use enhanced for loop where feasible
...
See gh-31916
2 years ago
Yanming Zhou
a35384fd57
Use text block where feasible
...
See gh-31916
2 years ago
Stéphane Nicoll
7e5afc8bbb
Update copyright year of changed files
...
See gh-31913
2 years ago
Yanming Zhou
7474af4f09
Cleanup kotlin sources
...
1. remove unused import
2. remove redundant semicolon
3. remove redundant empty constructor and SAM-constructor
4. remove unnecessary type argument
5. adjust indent
See gh-31913
2 years ago
Juergen Hoeller
fc0ea465e1
Clarify expectations for getBean call with provided arguments
...
Closes gh-24955
2 years ago
Juergen Hoeller
bd65a19d71
Introduce write method fallback step for overloaded setter methods
...
Closes gh-31872
2 years ago
Juergen Hoeller
4c0d0ba5b3
Use standard String comparison in PropertyDescriptorComparator
...
Closes gh-31866
2 years ago
Stéphane Nicoll
d0574197ea
Polish "Use String.repeat instead of explicit cycle"
...
See gh-31802
2 years ago
Adam Ostrožlík
63b2787da6
Use String.repeat instead of explicit cycle
...
See gh-31802
2 years ago
dogglezz
503ccb577c
Remove unused imports
...
Closes gh-31851
2 years ago
Juergen Hoeller
d4406507d0
Polishing
2 years ago
Juergen Hoeller
cd64e6676c
Prepare method overrides when bean class gets resolved
...
See gh-31826
2 years ago
Stéphane Nicoll
409cecfff9
Add custom code generation for bean definition property values
...
This commits allows ValueCodeGenerator$Delegate implementations to be
loaded from `META-INF/spring/aot.factories` and considered for code
generation of bean definition property values. This default behavior
in DefaultBeanRegistrationCodeFragments can be customized as usual.
Closes gh-31427
2 years ago
Stéphane Nicoll
3c2c9ca186
Extract value code generation to make it reusable
...
This commit introduces ValueCodeGenerator and its Delegate interface
as a way to generate the code for a particular value. Implementations
in spring-core provides support for common value types such a String,
primitives, Collections, etc.
Additional implementations are provided for code generation of bean
definition property values.
Closes gh-28999
2 years ago
Stéphane Nicoll
c75c0ae2d5
Make sure interface method has hints for init/destroy invocation
...
This commit matches the behavior of the core container when it
invokes a custom init or destroy method. If the custom method is an
interface implementation, the core container attempts to invoke the
method that's defined on the interface. This commit makes sure to also
register a hint for the interface method.
Closes gh-31819
2 years ago
Sam Brannen
c0683cd30b
Update copyright headers
2 years ago
Sam Brannen
1c58511cb2
Polishing
2 years ago
Stéphane Nicoll
b85fcb6aec
Polish
2 years ago
Juergen Hoeller
6dcba4de2c
Avoid double proxying for @Resource @Lazy fallback autowiring
...
Includes refactored @Resource resolver for AOT with lazy resolution support.
Closes gh-31447
See gh-29614
2 years ago
Juergen Hoeller
f29bfd9769
Polishing
2 years ago
Juergen Hoeller
361dfd1ae4
Polishing
2 years ago
Juergen Hoeller
8704ad98a7
Clear caches which are not needed after singleton instantiation
...
Closes gh-28293
2 years ago
Yanming Zhou
afcd03bddc
Replace assertThat(x.isEmpty()).isTrue() with assertThat(x).isEmpty()
...
Search for : assertThat\((.+).isEmpty\(\)\).isTrue\(\)
Replace with : assertThat($1).isEmpty()
Search for : assertThat\((.+).isEmpty\(\)\).isFalse\(\)
Replace with : assertThat($1).isNotEmpty()
Closes gh-31758
2 years ago
Yanming Zhou
7b16ef90f1
Replace assertThat(x.equals(y)) with assertThat(x).isEqualTo(y)
...
Search for : assertThat\((.+)\.equals\((\w+)\)\)\.isTrue\(\)
Replace with : assertThat($1).isEqualTo($2)
Search for : assertThat\((.+)\.equals\((\w+)\)\)\.isFalse\(\)
Replace with : assertThat($1).isNotEqualTo($2)
Closes gh-31763
2 years ago
Yanming Zhou
e2852e7355
Replace assertThat(x.contains(y)).isTrue() with assertThat(x).contains(y)
...
Search for : assertThat\((.+)\.contains\((.+)\)\)\.isTrue\(\)
Replace with : assertThat($1).contains($2)
Search for : assertThat\((.+)\.contains\((.+)\)\)\.isFalse\(\)
Replace with : assertThat($1).doesNotContain($2)
Closes gh-31762
2 years ago
Yanming Zhou
66e405525b
Replace assertThat(x instanceof y).isTrue() with assertThat(x).isInstanceOf(y.class)
...
Search for : assertThat\((.+) instanceof (\w+)\)\.isTrue\(\)
Replace with : assertThat($1).isInstanceOf($2.class)
Search for : assertThat\((.+) instanceof (\w+)\)\.isFalse\(\)
Replace with : assertThat($1).isNotInstanceOf($2.class)
Closes gh-31760
2 years ago
Yanming Zhou
59815cefce
Replace assertThat(x.get(i)). with assertThat(x).element(i).
...
Search for : assertThat\((.+)\.get\((\d+)\)\)\.
Replace with : assertThat($1).element($2).
Closes gh-31759
2 years ago
Yanming Zhou
785ad399e9
Replace assertThat(x.iterator().next()) with assertThat(x).element(0)
...
Search for : assertThat\((.+).iterator\(\).next\(\)\)
Replace with : assertThat($1).element(0)
2 years ago
Sam Brannen
aa347e5fe6
Polish MutablePropertyValuesTests
2 years ago
Sam Brannen
ceba4162bb
Replace assertThat(!x).isTrue() with assertThat(x).isFalse()
...
Search for : assertThat\(!(.+)\).isTrue\(\)
Replace with : assertThat(\1).isFalse()
2 years ago
Stéphane Nicoll
1da40b84e7
Polish "Use idiomatic AssertJ map assertions"
...
See gh-31752
2 years ago
Yanming Zhou
6f11716b6f
Use idiomatic AssertJ map assertions
...
See gh-31752
2 years ago
Sam Brannen
d71853f105
Polish contribution
...
See gh-31531
2 years ago
Yanming Zhou
490b5c77fc
Use switch expression where feasible
2 years ago