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
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
Сергей Цыпанов
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
Sam Brannen
0b57368d5f
Merge branch '5.2.x'
2020-08-08 12:23:45 +02:00
Sam Brannen
e25e690ad4
Assert preconditions for MergedAnnotations.from() factory methods
...
Prior to this commit, if null values were supplied for the
RepeatableContainers or AnnotationFilter arguments to `from()` factory
methods in MergedAnnotations, certain operations would eventually
result in a NullPointerException. This is to be expected; however, the
NullPointerException is often swallowed and only logged at INFO level
with an exception message similar to the following.
> Failed to introspect annotations on org.example.MyClass: NullPointerException
In such cases, the INFO log message is not helpful in diagnosing the
problem. Furthermore, since the exception is swallowed, the desired
operation (e.g., MergedAnnotations.stream(...)) simply returns no
results.
This commit improves the user experience by eagerly asserting non-null
preconditions for required arguments in MergedAnnotations.from()
factory methods.
Closes gh-25568
2020-08-08 12:21:15 +02:00
Sam Brannen
a614abe17b
Polish Javadoc for MergedAnnotations
2020-08-08 11:59:24 +02:00
Brian Clozel
617ec359bd
Update after MonoProcessor deprecation in Reactor
...
This commit adapts the usage of `MonoProcessor` after deprecations
introduced in reactor/reactor-core#1053
2020-08-07 18:59:21 +02:00
Juergen Hoeller
f4c0ceb1cc
Merge branch '5.2.x'
...
# Conflicts:
# build.gradle
# spring-tx/src/main/java/org/springframework/dao/support/PersistenceExceptionTranslationInterceptor.java
# spring-web/src/main/java/org/springframework/web/bind/support/WebRequestDataBinder.java
# spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerExecutionChain.java
# spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerMapping.java
2020-08-07 13:15:36 +02:00
Juergen Hoeller
8dd285f877
Polishing
2020-08-07 13:02:43 +02:00
Juergen Hoeller
96a4e1150e
Avoid unnecessary computation of cleaned URL
...
Closes gh-25531
2020-08-07 12:59:41 +02:00
Sam Brannen
c17f2047f6
Merge branch '5.2.x'
2020-08-03 13:44:39 +02:00
Sam Brannen
91d1383e93
Use Spliterators.emptySpliterator() in TypeMappedAnnotations
...
For greater clarity, this commit invokes Spliterators.emptySpliterator()
directly instead of going through java.util.Collections.EmptyList.
2020-08-03 13:44:02 +02:00
Sam Brannen
f28918e91d
Merge branch '5.2.x'
2020-07-30 13:38:32 +02:00
yilianhuaixiao
83a95832e6
Filter repeatable annotations in AnnotationTypeMappings
...
Prior to this commit, AnnotationTypeMappings did not filter repeatable
annotations with the supplied annotation filter.
Closes gh-25483
2020-07-29 17:11:24 +02:00
Sam Brannen
b841e8560c
Polish MergedAnnotation API internals
2020-07-29 17:08:58 +02:00
Brian Clozel
be801fc5fc
Polish
...
See gh-24878
2020-07-28 14:48:25 +02:00