Johnny Lim
431ae03447
Polish
...
Closes gh-29928
3 years ago
Juergen Hoeller
16937c7ce5
Polishing
3 years ago
Juergen Hoeller
c0c9ba5c2c
Polishing
3 years ago
Sam Brannen
75046bbea0
Update copyright headers
3 years ago
Sam Brannen
8e2eeb5364
Apply "instanceof pattern matching" in spring-beans
3 years ago
Sébastien Deleuze
1e47f31210
Support code generation for Set with non-comparable elements
...
Closes gh-29792
3 years ago
Sam Brannen
58872c79ee
Update copyright headers
3 years ago
Sam Brannen
24f18275dd
Stop referring to "Spring 3.x" features in documentation and code
3 years ago
Juergen Hoeller
0e8838db90
Flexible constructor resolution in AutowireCapableBeanFactory.createBean(Class)
...
Closes gh-29855
See gh-29823
3 years ago
Sébastien Deleuze
ab0d1c395d
Fail explicitly in AOT transformations of instance supplier
...
It is by design not possible to generate code that handles
bean definitions with user-provided instance suppliers because
the JVM does not allow to get a stable reference reusable at
runtime on the lambda or method reference in the code generated
AOT.
Before this commit, such instance supplier was ignored.
After this commit, an IllegalArgumentException is thrown,
allowing projects to be aware this is not supported and enforce
related refactorings.
The related issue gh-29555 describes how this limitation could
be relaxed in the future.
Closes gh-29556
3 years ago
Sam Brannen
0502d18e3d
Update copyright headers
3 years ago
Sam Brannen
c4c786596f
Migrate to Mockito.mock(T...) where feasible
3 years ago
Sam Brannen
e4b25ab480
Polishing
3 years ago
Sam Brannen
64de6de725
Update copyright headers
3 years ago
Sam Brannen
ad5c636aff
Upgrade to Mockito 5.0
3 years ago
Sam Brannen
a4956dfe26
Update copyright headers
3 years ago
Krzysztof Krason
afb8a0d1b1
Use new Java features (switch expressions, text blocks, new JDK methods)
...
Closes gh-29747
3 years ago
Sam Brannen
8dbdfb0449
Polishing
3 years ago
Sam Brannen
d5fb5d029b
Polish contribution
3 years ago
Vasiliy Kudriavtsev
3738a45658
Avoid wasted memory on empty maps and sets
...
This commit avoids wasted memory on empty hash maps in
MergedAnnotationReadingVisitor and empty sets in InjectionMetadata.
Closes gh-29742
3 years ago
Juergen Hoeller
254c3725e2
Polishing
3 years ago
Sam Brannen
8df4f927fd
Polish contribution
...
See gh-29697
3 years ago
Simon Baslé
5965917d16
Extract ResourceEntityResolver HTTPS schema resolution fallback
...
This commit extracts the DTD/XSD remote lookup fallback from the
resolveEntity() method into a protected method.
A WARN-level logging statement is added to the extracted fallback in
order to make it clear that remote lookup happened.
Overriding the protected method would allow users to avoid this
fallback entirely if it isn't desirable, without the need to duplicate
the local resolution code.
Closes gh-29697
3 years ago
Juergen Hoeller
d74191427e
Avoid NPE on BeanDescriptor access with SimpleBeanInfoFactory
...
Closes gh-29681
3 years ago
Sam Brannen
46fc28fd1a
Clean up Javadoc and source code regarding " ." typos
3 years ago
Brian Clozel
9712bb62fd
Upgrade optional dependencies
3 years ago
Sam Brannen
69f47e7700
Polishing
...
- primarily automated "clean up" using Eclipse IDE
3 years ago
Juergen Hoeller
d5732fed45
Polishing
3 years ago
Juergen Hoeller
4c7b04e32a
Use resolved factory method return type for supplier code generation
...
Closes gh-29598
3 years ago
Juergen Hoeller
e47978e168
Avoid unnecessary parameter name inspection for constructor-arg resolution
...
Closes gh-29612
3 years ago
Sam Brannen
ad60164911
Update copyright headers for source code changed since August 2022
...
The changes in this commit were performed using the newly introduced
update_copyright_headers.sh script.
3 years ago
Sam Brannen
a88dbbec98
Apply project formatting rules for ternary operator
...
Discovered via RegEx: ^\s+\?
3 years ago
Juergen Hoeller
8e5eb84da1
Consistently register CGLIB hints for lazy resolution proxy classes
...
Core JDK/CGLIB proxy registration code extracted to ClassHintUtils.
Closes gh-29584
3 years ago
Juergen Hoeller
459e8a1ea5
Deprecate LocalVariableTableParameterNameDiscoverer completely
...
LocalVariableTableParameterNameDiscoverer is not registered by default anymore now.
Java sources should be compiled with `-parameters` instead (available since Java 8).
Also retaining standard Java parameter names for all of Spring's Kotlin sources now.
Closes gh-29531
3 years ago
Sam Brannen
7fcd1de8e3
Use AssertJ's isEmpty() instead of hasSize(0)
...
Achieved via global search-and-replace.
3 years ago
Sam Brannen
d5b0b2b1a1
User AssertJ's hasSize() for arrays
...
Achieved via global search-and-replace.
3 years ago
Sam Brannen
36f7597f25
Use AssertJ's hasSize() for collections and maps
...
Achieved via a global search-and-replace.
3 years ago
Marten Deinum
c1dfde5ba4
Fix link to Bean Utils Light Library in BeanUtils Javadoc
...
The URL for the BULL library has changed (not sure when, probably way back).
This updates it to the correct location.
Closes gh-29534
3 years ago
Sam Brannen
796b8c1278
Polishing
3 years ago
Sam Brannen
cefd74555a
Polish contribution
3 years ago
wizard
e9555d4825
Polish AbstractAutowireCapableBeanFactory and use instanceof pattern matching
...
Closes gh-29499
3 years ago
Sam Brannen
abf3400c07
Use Assert.state() where appropriate
3 years ago
Sam Brannen
2aa78889d2
Use consistent wording in precondition error messages
3 years ago
Stephane Nicoll
711a63adca
Polish
...
See gh-29391
3 years ago
Juergen Hoeller
ec3f59e6fe
Allow AutoCloseable dereferences on original AutoCloseable beans
...
Closes gh-29480
3 years ago
Juergen Hoeller
49ee4a4fdf
Deprecated unused findAutowireCandidates template method (removed in 6.0)
...
See gh-29487
3 years ago
Juergen Hoeller
28cd39abf9
Remove unused AutowiredAnnotationBeanPostProcessor template methods
...
Closes gh-29487
3 years ago
Juergen Hoeller
aaeb5eb0d2
Avoid direct URL construction and URL equality checks
...
Closes gh-29486
3 years ago
Stephane Nicoll
da4b539f20
Stop generating generic type as Object for unresolved generics
...
Closes gh-29454
3 years ago
Juergen Hoeller
70bb785ed6
Turn nested generic FactoryBean type into resolved Class for fallback match
...
See gh-29385
3 years ago