Sam Brannen
787b09b202
Relax GraalVM check in DefaultParameterNameDiscoverer
...
Prior to this commit, DefaultParameterNameDiscoverer did not register
any discovers when compiling or running as a GraalVM native image.
This commit relaxes the GraalVM check so that it is only applied to the
registration of KotlinReflectionParameterNameDiscoverer.
Consequently, StandardReflectionParameterNameDiscoverer and
LocalVariableTableParameterNameDiscoverer are once again always
registered by DefaultParameterNameDiscoverer.
Closes gh-24600
2020-02-26 14:18:56 +01:00
Rossen Stoyanchev
2f12351292
Refine BlockHound support
...
- disable for Java 14/15 for now until BlockHound support
- targeted installation of required integrations only
2020-02-25 10:07:29 +00:00
Rossen Stoyanchev
2ae91404d1
BlockHoundIntegration for spring-core
2020-02-24 17:19:32 +00:00
Sam Brannen
7778508e69
Fix typos in ResolvableTypeTests
...
See gh-24529
Co-authored-by: Qimiao Chen <chenqimiao1994@126.com>
2020-02-24 15:37:42 +01:00
Sam Brannen
d1a6e49475
Reset SecurityManager in finally-block and polish
2020-02-23 18:33:56 +01:00
Sam Brannen
809ed9d469
Rename PropertyResolverExtensionsTests to Kotlin*
2020-02-23 18:21:53 +01:00
Qimiao Chen
f78c21e40b
Fix typos in tests
...
Closes gh-24566
2020-02-22 18:32:02 +01:00
Sam Brannen
8ff1ac59e0
Polishing
2020-02-19 11:29:51 +01:00
Rossen Stoyanchev
87f866b688
Update DigestUtils Javadoc with regards to InputStream
...
Closes gh-24534
2020-02-18 19:56:25 +00:00
Sam Brannen
5d4f1d9e09
Extract ValueExtractor functional interface
...
See gh-24375
2020-02-12 10:49:36 +01:00
Sam Brannen
974cacac31
Support nested annotations in ASM-based processing again
...
Spring Framework 5.0 introduced a regression in ASM-based annotation
processing. Specifically, nested annotations were no longer supported,
and component scanning resulted in an exception if a candidate
component was annotated with an annotation that contained nested
annotations.
This commit fixes this regression by introducing special handling in
AnnotationTypeMapping that supports extracting values from objects of
type TypeMappedAnnotation when necessary.
Closes gh-24375
2020-02-12 10:36:54 +01:00
Rossen Stoyanchev
d552105516
Eliminate windowUntil from StringDecoder
...
This is a follow-up on the earlier commit
28a95e89f3 eliminating windowUntil
entirely which generates a BubblingException wrapper. This also keeps
the chain a little simpler.
See gh-24355
2020-02-11 16:49:21 +00:00
Rossen Stoyanchev
28a95e89f3
Upgrade to Dysprosium SR5 snapshots
...
See gh-24355
2020-02-11 12:52:04 +00:00
Rossen Stoyanchev
7d1d989535
Minor polishing in ConcurrentReferenceHashMap
...
Closes gh-24494
2020-02-11 10:49:28 +00:00
Rossen Stoyanchev
e4a530efac
Minor refactoring in CommonsLogWriter
...
Closes gh-24495
2020-02-11 10:40:24 +00:00
Rossen Stoyanchev
df706f4c7c
Restore use of Flux-based encode method in HTTP
...
Closes gh-24441
2020-02-07 21:44:44 +00:00
Sam Brannen
2b6117c0c2
Fix Checkstyle violation
...
See gh-24393
2020-02-04 13:45:02 +01:00
Sam Brannen
72685b1d81
Polish contribution
...
See gh-24393
2020-02-04 13:41:31 +01:00
Hyunjin Choi
d624dc084f
Add close() method in FileCopyUtils to reduce duplication
...
Closes gh-24393
2020-02-04 13:36:24 +01:00
Hyunjin Choi
550f13e8ed
Simplify GenericConversionService.getMatchableConverters()
...
Closes gh-24403
2020-02-04 12:59:57 +01:00
Rossen Stoyanchev
f5df422de9
Polishing contribution
...
See gh-24470
2020-02-03 20:32:36 +00:00
Hyunjin Choi
273812f9c5
Remove unnecessary escapes in regular expressions
...
See gh-24470
2020-02-03 20:22:40 +00:00
Sam Brannen
cf9a052e3a
Polish contribution
...
See gh-24428
2020-02-03 15:39:00 +01:00
Hyunjin Choi
1b39f138eb
Test ObjectUtils.containsElement()
...
This commit introduces a unit test for the containsElement() method
in ObjectUtils.
Closes gh-24428
2020-02-03 15:34:47 +01:00
Hyunjin Choi
14a32d13d0
Fix typo in StringUtils class
...
Closes gh-24471
2020-02-03 15:23:32 +01:00
Sam Brannen
d77a28aac3
Support optional command line arguments with empty values
...
Spring Framework provides two implementations of the
CommandLinePropertySource API: SimpleCommandLinePropertySource and
JOptCommandLinePropertySource.
Prior to this commit, JOptCommandLinePropertySource supported empty
values for optional arguments; whereas, SimpleCommandLinePropertySource
did not.
This commit modifies the implementation of SimpleCommandLinePropertySource
to allow empty values for optional arguments.
Closes gh-24464
2020-02-03 15:03:43 +01:00
Sam Brannen
daebbf1960
Polishing
2020-01-31 14:34:50 +01:00
Сергей Цыпанов
64440a5f04
Some trivial improvements to reduce allocation pressure
...
Closes gh-24447
2020-01-28 11:07:40 +01:00
Juergen Hoeller
75abd9fc7e
Upgrade to ASM 7.3
...
Closes gh-24438
2020-01-27 18:18:16 +01:00
Kalmesh Sambrani
d085577e0a
Solve ReflectPermission Issue in Sandbox Security Policy Model
2020-01-24 14:15:39 +01:00
Sam Brannen
b34404916a
Update copyright date
2020-01-17 18:15:16 +01:00
Сергей Цыпанов
3adc7c3059
Hoist concatenation of two constant Strings out of loops
...
Closes gh-24388
2020-01-17 16:59:39 +01:00
Sam Brannen
daa30a9f0b
Consistent use of AnnotationUtils.rethrowAnnotationConfigurationException()
...
Closes gh-24379
2020-01-16 18:19:11 +01:00
Sam Brannen
6c2cb8ecf5
Polish contribution
...
See gh-24351
2020-01-14 17:33:02 +01:00
hyeonisism
f1827cb1f9
Add tests for StringUtils split() method
...
Closes gh-24351
2020-01-14 17:20:38 +01:00
Sam Brannen
33ffdd865d
Update copyright date
2020-01-13 16:29:23 +01:00
Qimiao Chen
c84dd55863
Fix typo in ReflectionUtilsTests
...
Closes gh-24344
2020-01-13 16:27:05 +01:00
Rossen Stoyanchev
cbc57460b7
Support for maxInMemorySize in SSE reader
...
Closes gh-24312
2020-01-13 14:57:14 +00:00
Rossen Stoyanchev
a741ae422b
Improve limit handling in StringDecoder
...
The case of one data buffer containing multiple lines can could cause
a buffer leak due to a suspected issue in concatMapIterable. This
commit adds workarounds for that until the underlying issue is
addressed.
Closes gh-24339
2020-01-13 14:57:14 +00:00
Sam Brannen
cb8db1e6df
Polish Javadoc
2020-01-10 16:05:33 +01:00
Juergen Hoeller
4936a637fe
Polishing
2020-01-09 17:03:17 +01:00
Juergen Hoeller
c39ed52f97
Add since tag to hasMethod(Class, Method)
...
See gh-24282
2020-01-08 19:05:03 +01:00
stsypanov
8e5cad2af3
Add fast path for ClassUtils.hasMethod()
2020-01-08 18:52:15 +01:00
Rossen Stoyanchev
01827389ef
Polishing contribution
...
See gh-24292
2020-01-08 16:19:25 +00:00
Oleh Faizulin
e96b71acf3
contentLength support for Resource decoding
...
Expose the known content length, if known, in the InputStreamResource returned by ResourceHttpMessageConverter or
ResourceDecoder.
See gh-24292
2020-01-08 16:19:11 +00:00
Sam Brannen
3299793c8a
Polish [Simple]AliasRegistry[Tests]
2020-01-06 11:30:05 +01:00
Qimiao Chen
d0c2812dad
Optimize SimpleAliasRegistry hasAlias implementation
...
This commit reduces the number of loops and recursions in
the implementation of SimpleAliasRegistry#hasAlias().
Closes gh-24295
2020-01-06 11:28:24 +01:00
Sam Brannen
081b3d304d
Move JavaUtilLoggingConfigurer to spring-core test fixtures
...
See gh-23550
2020-01-03 14:34:29 +01:00
Sam Brannen
94f8ef08e2
Move common TestPrincipal to spring-core test fixtures
...
See gh-23550
2020-01-02 16:01:35 +01:00
Sam Brannen
4260c34b47
Rename test fixture package in spring-core
...
See gh-23550
2020-01-02 16:01:34 +01:00