Juergen Hoeller
a36c0a50e6
Defensive error reporting when StandardAnnotationMetadata introspects declared methods
...
Issue: SPR-13791
2015-12-14 15:13:29 +01:00
Juergen Hoeller
0968e47b04
Polishing
2015-12-11 21:56:26 +01:00
Gary Russell
14fc6c2a99
SPR-13784: Base64Utils: URL/File Safe Alphabet
...
JIRA: https://jira.spring.io/browse/SPR-13784
JDK8 and Apache Commons Codec support the RFC 4648
"URL and Filename Safe" Base64 alphabet.
Add methods to `Base64Utils` to support this feature.
2015-12-11 14:55:15 -05:00
Juergen Hoeller
fdc14a16ee
AbstractApplicationContext clears ReflectionUtils cache as well
...
Issue: SPR-13783
2015-12-09 19:25:27 +01:00
Juergen Hoeller
d0814703c4
AnnotationUtils.synthesizeAnnotation explicitly checks whether SynthesizedAnnotation is exposable
...
Issue: SPR-13696
2015-12-07 17:36:14 +01:00
Juergen Hoeller
ee35b5ed07
Polishing
2015-12-07 12:52:06 +01:00
Juergen Hoeller
08b6daf1eb
Polishing
2015-12-03 18:41:03 +01:00
Juergen Hoeller
c909789ea9
Avoid mismatch between cached top-level versus nested parameter type
...
Issue: SPR-13755
2015-12-03 12:53:18 +01:00
Juergen Hoeller
44651fdf7c
ObjectToObjectConverter caches detected methods/constructors
...
This commit reworks the arrangement to a centralized cache, avoiding any extra reflection attempts if a cache entry is known already. In the course of this, it also enforces toXXX methods to be declared as non-static now (which is the only sensible arrangement anyway).
Issue: SPR-13703
2015-12-01 16:07:21 +01:00
Juergen Hoeller
38c21ee6bf
Class identity comparisons wherever possible
...
Issue: SPR-12926
2015-12-01 14:11:44 +01:00
Juergen Hoeller
4755467cca
Polishing
2015-11-30 12:36:30 +01:00
Juergen Hoeller
3234d9ede3
ObjectToObjectConverter caches detected methods/constructors
...
Includes polishing of related conversion exception messages.
Issue: SPR-13703
2015-11-29 22:17:16 +01:00
Juergen Hoeller
a0747c2148
Consistent bean type checking for endpoint handlers
...
Issue: SPR-13725
2015-11-25 21:26:03 +01:00
Juergen Hoeller
20a286b4d6
ASM ClassWriter uses application ClassLoader for its getCommonSuperClass check
...
Issue: SPR-13695
2015-11-24 17:38:02 +01:00
Juergen Hoeller
0524f3a474
Class identity comparisons wherever possible
...
Issue: SPR-12926
2015-11-24 17:37:30 +01:00
Juergen Hoeller
1cb6069734
Polishing
2015-11-14 23:52:39 +01:00
Juergen Hoeller
4b2ce60d65
Polishing
2015-11-13 08:31:13 +01:00
Juergen Hoeller
2bf8c0bc42
Polishing
2015-11-10 23:47:46 +01:00
Phillip Webb
e6b1f0a139
Use constants when caching empty arrays
...
Reduce cache memory consumption by using a single constant for empty
arrays.
2015-11-09 09:38:48 -08:00
Juergen Hoeller
760bc719f2
Polishing
2015-11-09 15:03:14 +01:00
Juergen Hoeller
bc7bcab578
Consistent method selection for listeners and endpoint mappings
...
Issue: SPR-13654
2015-11-09 14:57:45 +01:00
Sam Brannen
5b06150096
Deprecate correct method in AnnotatedElementUtils
2015-11-09 12:05:28 +00:00
Juergen Hoeller
59b6600763
Class identity comparisons wherever possible
...
Issue: SPR-12926
2015-11-08 20:45:17 +01:00
Juergen Hoeller
ea2843ecc0
MethodInvokeTypeProvider lazily invokes target method (avoiding deserialization exploits)
...
Issue: SPR-13656
2015-11-08 20:27:06 +01:00
Juergen Hoeller
c88877f1c4
Polishing
2015-11-05 16:35:20 +01:00
Juergen Hoeller
9683da52b2
Avoid annotation synthesizing for getAnnotationAttributes retrieval
...
Issue: SPR-13621
2015-11-05 16:35:07 +01:00
Juergen Hoeller
2ba5cb2734
Polishing
2015-11-05 12:30:29 +01:00
Juergen Hoeller
e27df06f91
AnnotatedElementUtils consistently operates on actual annotation type if available (for performance reasons)
...
The goal is to avoid String name comparisons in favor of annotation type identity checks wherever possible. Also, we avoid double getDeclaredAnnotations/getAnnotations checks on anything other than Classes now, since we'd just get the same result in a fresh array.
Issue: SPR-13621
2015-11-05 12:29:29 +01:00
Juergen Hoeller
e35855f9b5
Avoid expensive annotation retrieval algorithm if no annotations present in the first place
...
Issue: SPR-13621
2015-11-05 12:26:54 +01:00
Phillip Webb
1733d0111d
Add shortcuts for elements with no annotations
...
Improve the performance of the `getMergedAnnotationAttributes` and
`isAnnotated` methods in `AnnotatedElementUtils` by returning
immediately when the element had no annotations.
Issue: SPR-13621
2015-11-04 22:42:34 -08:00
Juergen Hoeller
ce64761069
Optimized equals/hashCode handling in ResolvableType
...
Issue: SPR-13621
2015-11-03 16:56:43 +01:00
Juergen Hoeller
23c8f712c4
Polishing
2015-11-02 21:30:03 +01:00
Juergen Hoeller
c3dbaed4ce
AnnotationUtils caches findAnnotation results in pre-synthesized form
...
Issue: SPR-13621
2015-11-02 21:25:08 +01:00
Juergen Hoeller
4dc31667d4
AnnotationUtils defines synthesized proxy class in original annotation's ClassLoader
...
Issue: SPR-13634
2015-11-02 21:24:32 +01:00
Juergen Hoeller
cca037a74d
Polishing
2015-11-02 14:42:46 +01:00
Stephane Nicoll
0579e61a65
Add API to register collection converters
...
Previously, the only way to add the collection converters to a registry
was to add *all* default converters. A new "addCollectionConverters"
public method is now available to only register them.
Issue: SPR-13618
2015-10-28 15:55:29 +01:00
Juergen Hoeller
91b3caf238
Fixed visibility of 4.2's additional default converters
...
Issue: SPR-12175
Issue: SPR-13020
2015-10-28 15:38:46 +01:00
Juergen Hoeller
400749667a
Polishing
2015-10-26 23:10:33 +01:00
Sam Brannen
c2bc2b27ea
Suppress varargs warnings when compiling tests w/ Gradle
2015-10-14 02:00:08 +03:00
Juergen Hoeller
1c3a668370
AbstractFileResolvingResource uses extractArchiveURL for last-modified check
...
Issue: SPR-13393
(cherry picked from commit 302a069
)
2015-10-13 20:47:29 +02:00
Juergen Hoeller
155bbf5057
ResourceUtils supports Tomcat's "war 🫙 " URL format
...
Issue: SPR-13393
2015-10-13 14:36:00 +02:00
Juergen Hoeller
66177dfd8c
StreamUtils.emptyInput() for consistent empty InputStream exposure
...
Issue: SPR-13563
2015-10-12 22:25:40 +02:00
Juergen Hoeller
21e0e27fcb
Removed superfluous ObjectStreamException declaration
2015-10-09 22:55:28 +02:00
Sam Brannen
1a227da19e
Polish AnnotatedElementUtilsTests
2015-10-09 22:51:27 +02:00
Sam Brannen
5e1d6e47a9
Introduced failing, @Ignored test for SPR-13554
...
Issue: SPR-13554
2015-10-09 22:23:49 +02:00
Juergen Hoeller
6993a7d3d0
Polishing
2015-10-06 13:30:13 +02:00
Juergen Hoeller
9cf28950e5
PathResourceTests defensively compares last-modified timestamps at seconds precision
...
Issue: SPR-13542
2015-10-06 13:25:27 +02:00
Juergen Hoeller
427767f21e
Fixed event listener caching through equals/hashCode on SyntheticParameterizedType
...
Issue: SPR-13540
2015-10-06 00:05:51 +02:00
Sam Brannen
d5ee787e1e
Migrate JUnit 3 tests to JUnit 4
...
This commit migrates all remaining tests from JUnit 3 to JUnit 4, with
the exception of Spring's legacy JUnit 3.8 based testing framework that
is still in use in the spring-orm module.
Issue: SPR-13514
2015-09-27 21:17:51 +02:00
Juergen Hoeller
a6a6aed17f
StopWatch provides getId/currentTaskName accessors (plus further fine-tuning)
...
Issue: SPR-13509
2015-09-25 15:23:39 +02:00