Sam Brannen
00be19c647
Consistently declare Object::equals argument as @Nullable
3 years ago
Juergen Hoeller
d213522dfc
Polishing
3 years ago
Sam Brannen
56523d5014
Polishing
3 years ago
Sam Brannen
8ebd746d69
Apply "instanceof pattern matching" in remainder of spring-core module
...
See gh-30067
3 years ago
Sam Brannen
c0a1e1718e
Polishing
3 years ago
Juergen Hoeller
8d112b8514
Test for explicit URI decoding in convertClassLoaderURL
...
See gh-30031
3 years ago
Juergen Hoeller
4419d56178
Explicit URI decoding for FileSystemResource in convertClassLoaderURL
...
Also raising the log level to warn for file system retrieval failures.
Closes gh-30031
3 years ago
Sébastien Deleuze
dbbebf541d
Refine reflection hints handling for anonymous class
...
Before this commit, anonymous classes could throw an
unexpected NullPointerException in
ReflectionsHint#registerType and lambdas entries could
be created in the related generated reflect-config.json.
This commit refines how anonymous classes are handled by
explicitly checking for null class and canonical name in
ReflectionTypeReference#of, while skipping such class in
ReflectionHints#registerType in order to keep a lenient
behavior.
Closes gh-29774
3 years ago
Johnny Lim
475ac6ef5d
Fix KotlinCoroutinesUtilsTests.invokeNonSuspendingFunctionWithContext()
...
Closes gh-30029
3 years ago
Sam Brannen
edb4a3467a
Update copyright headers
3 years ago
Sam Brannen
7c50464bba
Polishing
3 years ago
Sébastien Deleuze
f60bec986f
Add missing @Nullable annotations to LogMessage methods
...
Closes gh-30006
3 years ago
Sébastien Deleuze
6825a842b5
Support package private methods on CGLIB proxies with AOT
...
Closes gh-29582
Closes gh-29764
3 years ago
Sébastien Deleuze
9cb4c5565a
Fix proxy hint Kotlin extensions
...
Closes gh-30025
3 years ago
Sébastien Deleuze
3d8455b257
Add unit tests for CoroutinesUtils
...
Closes gh-29968
3 years ago
Sébastien Deleuze
fd38c23699
Refine CoroutinesUtils#invokeSuspendingFunction contract
...
This commit refines CoroutinesUtils#invokeSuspendingFunction in order
to clarify the behavior when used on a non suspending function, and
support usages with or without the Continuation argument.
Closes gh-30005
3 years ago
Sam Brannen
2d56505ea9
Polishing
3 years ago
Sam Brannen
2e1374b459
Update copyright headers
3 years ago
Arjen Poutsma
afd67a0deb
Fix DataBufferUtils::write AsynchronousFileChannel race condition
...
See gh-29943
3 years ago
Johnny Lim
ce3be72e7f
Polish
3 years ago
Juergen Hoeller
979118c1eb
Polishing
3 years ago
Juergen Hoeller
f87a87e29d
Consistent ordering of Resource methods
...
See gh-24651
3 years ago
Arjen Poutsma
12d4dc1bae
Polishing external contribution
...
This commit makes several changes to PR #24651 .
- Add byte[] getContentAsByteArray() on Resource.
- Remove getContentAsString() from Resource, as it relied on the default
charset which is not reliable.
- Add getContentAsString() to EncodedResource, as a charset is provided
through the constructor.
See gh-24651
3 years ago
Derrick Anderson
4da2499613
Introduce Resource::getContentAsString
...
This commit introduces the getContentAsString method to Resource,
returning the string contents of the resource.
Closes gh-24651
3 years ago
Juergen Hoeller
d7824c7831
Polishing
3 years ago
Juergen Hoeller
33b329e13a
Latest patch from ASM master
...
See gh-29910
3 years ago
Arjen Poutsma
79a1fcb099
Polishing DataBuffer::write(CharSequence, Charset)
...
See gh-29943
3 years ago
Arjen Poutsma
3e2f58cdd2
Offer restricted access to DataBuffer's ByteBuffer
...
This commit introduces DataBuffer::readableByteBuffers and
DataBuffer::writableByteBuffers, allowing restricted access to the
ByteBuffer used internally by DataBuffer implementations.
Closes gh-29943
3 years ago
Johnny Lim
431ae03447
Polish
...
Closes gh-29928
3 years ago
Juergen Hoeller
dbf360997a
Convert non-pattern ClassLoader results to FileSystemResource if possible
...
Closes gh-29934
3 years ago
Juergen Hoeller
b719a87061
Suggest AOP proxy or CGLIB_CLASS_SEPARATOR check instead of isCglibProxyClass
...
See gh-22706
3 years ago
Sébastien Deleuze
cb63164593
Refine Coroutines support in HttpServiceProxyFactory
...
Closes gh-29527
3 years ago
Donghyeon Kim
1d4bf58e8d
Support Coroutines in HttpServiceProxyFactory
...
See gh-29527
3 years ago
Sébastien Deleuze
ebca9f726f
Provide Kotlin extensions for RuntimeHints
...
To be able to register hints using for example registerType<MyClass>()
instead of registerType(MyClass::class.java).
Closes gh-29831
3 years ago
Juergen Hoeller
3a08d643ed
Upgrade to ASM master (including early support for Java 21 bytecode)
...
Closes gh-29910
3 years ago
Juergen Hoeller
7c9dca3d2e
Declare no-op close() method in order to avoid container-triggered shutdown call
...
Closes gh-29892
3 years ago
Chen Jianbin
9e735d4f0f
Normalize and optimize internals of CGLIB ParallelSorter
...
Closes gh-29516
3 years ago
Sam Brannen
64b89429cb
Update copyright headers
3 years ago
xavier-b
b7d53ac9a4
Use DataBuffer::toString instead of CharBuffer
...
This commit ensures that converting DataBuffers to a String does not
use an expensive ByteBuffer allocation.
Closes gh-29889
3 years ago
Sam Brannen
75046bbea0
Update copyright headers
3 years ago
Sam Brannen
556863d401
Polishing
3 years ago
Sébastien Deleuze
e6397c8a38
Infer reflection hints for Jackson annotation class attributes
...
Closes gh-29646
Closes gh-29386
3 years ago
Sam Brannen
fa1ef1dc85
Deprecate obsolete ConcurrentExecutorAdapter for removal in 6.1
...
Closes gh-29865
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
Sam Brannen
0502d18e3d
Update copyright headers
3 years ago
Sam Brannen
c4c786596f
Migrate to Mockito.mock(T...) where feasible
3 years ago
Sam Brannen
64de6de725
Update copyright headers
3 years ago
Brian Clozel
5448e81021
Deprecate Base64Utils in favor of Java's Base64
...
Originally, `Base64Utils` was providing base64 encoding and decoding
utilities, bridging to commons-codecs or Java 8, if available. Since
then, only the Java 8 variant remains and Spring Framework 6 requires
now Java 17. This utility class doesn't provide additional checks or
syntactic sugar over what's in Java already.
As a result, this commit deprecates this class in favor of `Base64` and
schedules the removal of this class completely.
Closes gh-28434
3 years ago
j3graham
f7e07322ab
Simplify Base64Utils by using java.util.Base64
...
This commit simplifies the `Base64Utils` implementation by relying more
on the `Base64` methods that perform similar work.
See gh-28434
3 years ago