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
Sam Brannen
58872c79ee
Update copyright headers
2023-01-20 14:17:53 +01:00
Sam Brannen
24f18275dd
Stop referring to "Spring 3.x" features in documentation and code
2023-01-20 14:13:18 +01:00
Sam Brannen
0502d18e3d
Update copyright headers
2023-01-19 16:20:03 +01:00
Sam Brannen
c4c786596f
Migrate to Mockito.mock(T...) where feasible
2023-01-19 16:20:02 +01:00
Sam Brannen
64de6de725
Update copyright headers
2023-01-17 15:49:26 +01:00
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
2023-01-17 15:30:45 +01:00
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
2023-01-17 15:29:58 +01:00
정준영
37217a63e1
Remove unnecessary calls to Reference::clear
...
Prior to this commit, `ConcurrentReferenceHashMap` subclasses extending
`Reference` would call `Reference::clear` right next to
`Reference::enqueue`; this is not needed as the latter calls it already.
Closes gh-28863
2023-01-17 14:44:39 +01:00
Sam Brannen
a4956dfe26
Update copyright headers
2023-01-11 13:52:20 +01:00
Sam Brannen
0415975dd1
Polish contribution and related code
2023-01-11 13:52:20 +01:00
Krzysztof Krason
afb8a0d1b1
Use new Java features (switch expressions, text blocks, new JDK methods)
...
Closes gh-29747
2023-01-11 13:51:28 +01:00
Sam Brannen
d5fb5d029b
Polish contribution
2023-01-10 16:07:48 +01:00
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
2023-01-10 15:52:17 +01:00
Sam Brannen
d4623a393b
Update copyright headers
2022-12-18 12:16:19 +01:00
Sam Brannen
5c28b56823
Remove duplicated words in Javadoc
2022-12-18 12:05:18 +01:00
Sam Brannen
b5b80d0a07
Polishing
2022-12-16 14:50:02 +01:00
Carlos Belizón
5d2ca11315
Fix manipulating property sources example in Javadoc for ConfigurableEnvironment
...
The "manipulating property sources" example in the Javadoc for
`ConfigurableEnvironment` states that `MutablePropertySources`
expect a `Map<String,String>`; whereas it expects a
`Map<String,Object>`.
Closes gh-29693
2022-12-16 13:47:40 +01:00
Sam Brannen
6e08c56076
Improve Javadoc for RepeatableContainers
2022-12-14 13:40:43 +01:00
Sam Brannen
fb6d3f5b5c
Remove duplicated test code
2022-12-14 13:26:51 +01:00
Sam Brannen
e7bcb48e57
Remove obsolete AttributeMethods.hasOnlyValueAttribute() method
...
See gh-29685
2022-12-13 16:01:05 +01:00