Sam Brannen
18adf905a8
Polishing
2023-03-23 17:04:41 +01:00
Sam Brannen
ce9a72f95c
Update copyright headers
2023-03-23 16:56:20 +01:00
Sam Brannen
dfb4a951ae
Suppress deprecation warnings instead of deprecating tests
2023-03-23 16:55:12 +01:00
Brian Clozel
d9776941bf
Update Java version for compatibility tests in CI
...
This commit configures Java 20 for compatibility tests in our CI,
replacing Java 19.
2023-03-23 15:47:06 +01:00
Сергей Цыпанов
4e896c8125
Use InputStream.readAllBytes() in FileCopyUtils.copyToByteArray()
...
InputStream.readAllBytes() allows us to avoid the creation of an
intermediate ByteArrayOutputStream and is likely to perform better.
Closes gh-30155
2023-03-21 15:37:26 +01:00
Sam Brannen
df4e7d1929
Polishing
2023-03-15 15:08:47 +01:00
Sam Brannen
e17f5c50a8
Update copyright headers
2023-03-13 21:53:40 +01:00
Sam Brannen
00be19c647
Consistently declare Object::equals argument as @Nullable
2023-03-13 21:43:21 +01:00
Juergen Hoeller
d213522dfc
Polishing
2023-03-08 16:49:32 +01:00
Sam Brannen
56523d5014
Polishing
2023-03-05 19:37:11 +01:00
Sam Brannen
8ebd746d69
Apply "instanceof pattern matching" in remainder of spring-core module
...
See gh-30067
2023-03-05 19:09:32 +01:00
Sam Brannen
c0a1e1718e
Polishing
2023-03-02 16:22:42 +01:00
Juergen Hoeller
8d112b8514
Test for explicit URI decoding in convertClassLoaderURL
...
See gh-30031
2023-03-02 13:33:53 +01:00
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
2023-03-02 10:18:13 +01:00
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
2023-03-01 15:41:30 +01:00
Johnny Lim
475ac6ef5d
Fix KotlinCoroutinesUtilsTests.invokeNonSuspendingFunctionWithContext()
...
Closes gh-30029
2023-02-27 14:02:49 +01:00
Sam Brannen
edb4a3467a
Update copyright headers
2023-02-26 18:37:18 +01:00
Sam Brannen
7c50464bba
Polishing
2023-02-26 18:30:14 +01:00
Sébastien Deleuze
f60bec986f
Add missing @Nullable annotations to LogMessage methods
...
Closes gh-30006
2023-02-24 17:45:50 +01:00
Sébastien Deleuze
6825a842b5
Support package private methods on CGLIB proxies with AOT
...
Closes gh-29582
Closes gh-29764
2023-02-24 17:00:41 +01:00
Sébastien Deleuze
9cb4c5565a
Fix proxy hint Kotlin extensions
...
Closes gh-30025
2023-02-24 10:46:27 +01:00
Sébastien Deleuze
3d8455b257
Add unit tests for CoroutinesUtils
...
Closes gh-29968
2023-02-21 10:20:00 +01:00
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
2023-02-21 10:20:00 +01:00
Sam Brannen
2d56505ea9
Polishing
2023-02-20 16:49:27 +01:00
Sam Brannen
2e1374b459
Update copyright headers
2023-02-19 13:41:36 +01:00
Arjen Poutsma
afd67a0deb
Fix DataBufferUtils::write AsynchronousFileChannel race condition
...
See gh-29943
2023-02-15 15:38:48 +01:00
Johnny Lim
ce3be72e7f
Polish
2023-02-15 22:22:58 +09:00
Juergen Hoeller
979118c1eb
Polishing
2023-02-15 10:13:16 +01:00
Juergen Hoeller
f87a87e29d
Consistent ordering of Resource methods
...
See gh-24651
2023-02-15 10:13:03 +01:00
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
2023-02-14 14:56:34 +01:00
Derrick Anderson
4da2499613
Introduce Resource::getContentAsString
...
This commit introduces the getContentAsString method to Resource,
returning the string contents of the resource.
Closes gh-24651
2023-02-14 14:37:40 +01:00
Juergen Hoeller
d7824c7831
Polishing
2023-02-14 11:00:01 +01:00
Juergen Hoeller
33b329e13a
Latest patch from ASM master
...
See gh-29910
2023-02-14 10:58:03 +01:00
Arjen Poutsma
79a1fcb099
Polishing DataBuffer::write(CharSequence, Charset)
...
See gh-29943
2023-02-13 16:34:04 +01:00
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
2023-02-13 15:28:29 +01:00
Johnny Lim
431ae03447
Polish
...
Closes gh-29928
2023-02-09 09:54:19 +01:00
Juergen Hoeller
dbf360997a
Convert non-pattern ClassLoader results to FileSystemResource if possible
...
Closes gh-29934
2023-02-07 17:19:23 +01:00
Juergen Hoeller
b719a87061
Suggest AOP proxy or CGLIB_CLASS_SEPARATOR check instead of isCglibProxyClass
...
See gh-22706
2023-02-07 17:19:12 +01:00
Sébastien Deleuze
cb63164593
Refine Coroutines support in HttpServiceProxyFactory
...
Closes gh-29527
2023-02-07 11:07:30 +01:00
Donghyeon Kim
1d4bf58e8d
Support Coroutines in HttpServiceProxyFactory
...
See gh-29527
2023-02-07 11:07:29 +01:00
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
2023-02-01 12:04:18 +01:00
Juergen Hoeller
3a08d643ed
Upgrade to ASM master (including early support for Java 21 bytecode)
...
Closes gh-29910
2023-01-31 16:06:33 +01:00
Juergen Hoeller
7c9dca3d2e
Declare no-op close() method in order to avoid container-triggered shutdown call
...
Closes gh-29892
2023-01-31 16:03:26 +01:00
Chen Jianbin
9e735d4f0f
Normalize and optimize internals of CGLIB ParallelSorter
...
Closes gh-29516
2023-01-31 12:20:45 +01:00
Sam Brannen
64b89429cb
Update copyright headers
2023-01-31 11:52:25 +01:00
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
2023-01-30 14:58:48 +01:00
Sam Brannen
75046bbea0
Update copyright headers
2023-01-28 20:42:21 +01:00
Sam Brannen
556863d401
Polishing
2023-01-27 17:54:03 +01:00
Sébastien Deleuze
e6397c8a38
Infer reflection hints for Jackson annotation class attributes
...
Closes gh-29646
Closes gh-29386
2023-01-23 13:21:34 +01:00
Sam Brannen
fa1ef1dc85
Deprecate obsolete ConcurrentExecutorAdapter for removal in 6.1
...
Closes gh-29865
2023-01-20 14:20:18 +01:00