Sam Brannen
a6bede22c1
Polish contribution
...
See gh-23379
2020-09-29 14:25:04 +02:00
Josh Cummings
a0c00362c3
Introduce Converter.andThen(...)
...
Closes gh-23379
2020-09-29 14:04:57 +02:00
Brian Clozel
e33e7d7681
Remove TestGroup.PERFORMANCE
...
Now that there's a new JMH infrastructure for benchmarks and that
performance tests have been rewritten to use it, we should remove the
`PERFORMANCE` `TestGroup` to avoid introducing such tests in the future.
Closes gh-24830
2020-09-25 13:43:38 +02:00
Brian Clozel
61d893257e
Rewrite "performance" test to JMH benchmarks
...
This commit rewrites the remaining "fastEnough" performance tests into
proper JMH benchmarks.
See gh-24830
2020-09-25 13:43:38 +02:00
Juergen Hoeller
6c631e3d5c
Merge branch '5.2.x'
...
# Conflicts:
# spring-messaging/src/main/java/org/springframework/messaging/converter/MappingJackson2MessageConverter.java
2020-09-25 11:36:18 +02:00
Juergen Hoeller
6e4fcb69f0
Polishing
2020-09-25 11:26:01 +02:00
Juergen Hoeller
c04400890f
Avoid repeated Charset resolution in MimeType
...
Closes gh-25808
2020-09-25 11:23:12 +02:00
Juergen Hoeller
9795883d91
Avoid repeated Charset resolution in MimeType
...
Closes gh-25808
2020-09-25 10:51:08 +02:00
Shenker93
ad5072a43c
optimize StringUtils trimLeadingWhitespace() / trimTrailingWhitespace() & trimLeadingCharacter() / trimTrailingCharacter() utility methods
2020-09-25 10:44:02 +02:00
Juergen Hoeller
2a74f20c99
Merge branch '5.2.x'
2020-09-18 19:14:57 +02:00
Juergen Hoeller
f5d7161d6b
Consistent flushing of given OutputStream
2020-09-18 19:14:11 +02:00
Juergen Hoeller
82e64af5a5
Avoid throwing plain RuntimeException (plus related polishing)
...
See gh-24805
2020-09-18 19:01:49 +02:00
Juergen Hoeller
bbe74635eb
Merge branch '5.2.x'
2020-09-18 18:16:33 +02:00
Juergen Hoeller
9dfef59af2
Construct StringWriter instances with appropriate initial size
...
Closes gh-25789
2020-09-18 18:14:57 +02:00
Sam Brannen
9c8a8d82b9
Merge branch '5.2.x'
2020-09-15 17:18:39 +02:00
Sam Brannen
a6daed1b71
Fix example in Javadoc for Assert.notNull(object, messageSupplier)
...
Closes gh-25774
2020-09-15 16:27:21 +02:00
Sam Brannen
fe9f29f031
Suppress deprecation warning in AbstractDataBufferAllocatingTests
2020-09-15 14:34:41 +02:00
Rossen Stoyanchev
8b8b59bf80
Merge branch '5.2.x' into master
2020-09-15 11:37:00 +01:00
Rossen Stoyanchev
28df426798
Update AbstractDataBufferAllocatingTests
...
We are passing custom values to the constructor of PooledByteBufAllocator in
tests in order to turn of caching. This is based on:
https://github.com/netty/netty/issues/5275#issuecomment-220547057
Netty 4.1.52 has significant changes in PooledByteBufAllocator:
https://github.com/netty/netty/pull/10267
After the changes, our current value for maxOrder=2, which results in
chunkSize=16K, causes an assert failure in PoolChunk where the runSize
exceeds the chunkSize.
2020-09-15 11:31:59 +01:00
Juergen Hoeller
07b3e92bae
Merge branch '5.2.x'
...
# Conflicts:
# build.gradle
# src/docs/asciidoc/core/core-aop-api.adoc
2020-09-14 22:22:02 +02:00
Juergen Hoeller
3c84863271
Polishing
2020-09-14 22:18:30 +02:00
Rossen Stoyanchev
bd277819fd
Merge branch '5.2.x' into master
2020-09-14 15:43:38 +01:00
Rossen Stoyanchev
dccc78146a
Expose defaultCharset in StringDecoder
...
Closes gh-25762
2020-09-14 14:28:02 +01:00
Rossen Stoyanchev
3295034839
Merge branch '5.2.x' into master
2020-09-13 21:30:02 +01:00
Rossen Stoyanchev
49356b2c0f
SimpleIdGenerator rolls over at Long.MAX_VALUE
...
Closes gh-25485
2020-09-13 21:09:08 +01:00
Juergen Hoeller
a958633b7a
Merge branch '5.2.x'
2020-09-08 17:09:58 +02:00
Juergen Hoeller
4d1d60ac42
Check log level before delegating Supplier-based message to target Log
...
Closes gh-25741
2020-09-08 16:50:40 +02:00
Brian Clozel
f7a014d7dc
Improve MIME type subtype suffix handling
...
Prior to this commit, the subtype suffix of a MIME type (see RFC 6839)
was not properly taken into account when checking compatibility between
MIME types.
For example, `"application/*"` was not considered as compatible with
`"application/vnd.io.spring+json"`.
This commit adds a new `MimeType#getSubtypeSuffix()` method to easily
extract the subtype suffix information. This method is then reused in
the `isCompatibleWith` implementation to better handle these cases.
Fixes gh-25350
2020-09-08 14:46:48 +02:00
Juergen Hoeller
7dbb40ffa0
Merge branch '5.2.x'
2020-09-08 12:24:18 +02:00
Juergen Hoeller
c6cc6705ef
FileUrlResource.isWritable() exclusively relies on getFile() implementation
...
Closes gh-25584
2020-09-08 12:23:27 +02:00
Juergen Hoeller
a93af329fc
Fix javadoc typos (from ASM master)
...
See gh-24872
2020-09-07 17:55:41 +02:00
Juergen Hoeller
75f394ca85
Merge branch '5.2.x'
2020-09-07 17:54:51 +02:00
Juergen Hoeller
613b05d814
Properties loading with ignoreResourceNotFound covers SocketException as well
...
Closes gh-25717
2020-09-07 17:51:14 +02:00
Yanming Zhou
a2bb59f1b8
Replace StringBuffer with StringBuilder where possible
2020-09-03 22:40:51 +02:00
Brian Clozel
88249b2d9a
Polish StartupStep "tags" method
...
Renaming the `tags` method to `getTags` for overall consistency, and
fixing the Javadoc to mention that this returns an immutable collection.
Closes gh-25678
2020-09-02 17:57:38 +02:00
Stephane Nicoll
f55b48f4b4
Merge branch '5.2.x'
2020-09-02 14:44:22 +02:00
Stephane Nicoll
c2363a6ef9
Make DataSize serializable
...
Closes gh-25675
2020-09-02 14:39:12 +02:00
Сергей Цыпанов
1f3e52d932
gh-25650 Replace remaining usage of LinkedList with ArrayList in tests
2020-08-31 14:33:14 +02:00
Сергей Цыпанов
a033660425
Improve performance of JdkDynamicAopProxy.getProxy()
2020-08-30 11:40:08 +02:00
Juergen Hoeller
2080878d82
Merge branch '5.2.x'
...
# Conflicts:
# spring-beans/src/main/java/org/springframework/beans/factory/parsing/ParseState.java
2020-08-27 14:40:54 +02:00
Juergen Hoeller
589060d10f
Avoid LinkedList performance issues through use of ArrayDeque
...
Closes gh-25652
2020-08-27 14:14:08 +02:00
Juergen Hoeller
874574513c
Replace remaining usage of LinkedList with ArrayList/ArrayDeque
...
Closes gh-25650
2020-08-26 18:32:08 +02:00
Juergen Hoeller
d198c4426f
Extract ConcurrentLruCache for reuse in NamedParameterJdbcTemplate
...
Closes gh-24197
2020-08-26 14:35:01 +02:00
Juergen Hoeller
2b47e779ac
Explicit explanation that no resize/rehash operations will be needed
...
See gh-25349
2020-08-26 11:48:50 +02:00
Juergen Hoeller
ff11467a0c
Avoid resizing of fixed-size HashMap/LinkedHashMap variants
...
Closes gh-25349
2020-08-25 19:26:18 +02:00
Juergen Hoeller
7324140d20
Merge branch '5.2.x'
2020-08-25 16:21:00 +02:00
Juergen Hoeller
04df9b8f49
Efficient checks for empty strings and single character matches
...
Closes gh-25552
Closes gh-25553
2020-08-25 16:17:12 +02:00
Rossen Stoyanchev
7758ba3c7e
Refactor MonoToListenableFutureAdapter
...
Closes gh-25561
2020-08-14 15:18:39 +01:00
Sam Brannen
c558391e2c
Declare interfaces as @FunctionalInterface where feasible
...
This commit declares each of the following public interfaces as a
@FunctionalInterface.
- org.springframework.context.ApplicationContextInitializer
- org.springframework.test.web.servlet.DispatcherServletCustomizer
- org.springframework.validation.MessageCodeFormatter
- org.springframework.util.IdGenerator
- org.springframework.beans.factory.config.YamlProcessor.MatchCallback
- org.springframework.beans.factory.config.YamlProcessor.DocumentMatcher
Closes gh-25580
2020-08-11 17:01:03 +02:00
Sam Brannen
596936f18c
Polishing
2020-08-11 16:42:18 +02:00