Juergen Hoeller
f8b729aa5f
Polishing
11 years ago
Sam Brannen
bea9f3ff76
Make SocketUtils a concrete class
...
Per the Javadoc for the SocketUtils() constructor, SocketUtils can be
instantiated as a Spring Bean in XML configuration files; however,
SocketUtils is currently abstract which prevents such usage.
This commit removes the 'abstract' declaration thereby allowing
SocketUtils to be instantiated as a Spring bean.
Issue: SPR-12169
(cherry picked from commit 559e81b)
11 years ago
Juergen Hoeller
d765698ac3
Polishing
12 years ago
Juergen Hoeller
97bd0ccfec
Polishing
12 years ago
Sebastien Deleuze
b7726ff48c
Improve ResolvableType.hashCode() for better performance
...
Prior to this commit, when there was a lot of entries in the
ResolvableType.cache HashMap, getting a simple value could
take a lot of time due to a lot of calls to ResolvableType.equals().
ResolvableType.equals() used this.type, getSource(),
this.variableResolver.getSource() and this.componentType, but
ResolvableType.hashCode() used only this.type.
With this commit, ResolvableType.hashCode() now uses the same
fields than ResolvableType.equals().
Performance on the spring-resolvabletype-benchmark project:
- 8000 us before this commit
- 120 us with this commit
Issue: SPR-12122
(cherry picked from commit 7ea69fb)
12 years ago
Juergen Hoeller
e324c2ab4a
Polishing
12 years ago
Juergen Hoeller
39a23660fa
PropertySource implementations perform conversion to String arrays via StringUtils (getting rid of EMPTY_NAMES_ARRAY)
...
(cherry picked from commit b73c531)
12 years ago
Juergen Hoeller
a31ebb6c1e
Polishing
12 years ago
Juergen Hoeller
a7492fa55b
Polishing
12 years ago
Juergen Hoeller
d61353db51
AnnotatedElementUtils adapts post-processed values to AnnotationAttributes as well
...
Issue: SPR-12065
(cherry picked from commit ef51d4d)
12 years ago
Juergen Hoeller
f2eea9d911
Polishing
...
(cherry picked from commit 8f484d3)
12 years ago
Juergen Hoeller
9ad6618207
Polishing
12 years ago
Juergen Hoeller
84a4433898
AbstractTypeHierarchyTraversingFilter leniently ignores non-loadable super classes and interfaces
...
Issue: SPR-12042
(cherry picked from commit a3163ce)
12 years ago
Juergen Hoeller
6e95b2613e
Polishing
12 years ago
Arjen Poutsma
fca72f6b65
StaxStreamXMLReader ignores significant whitespace
...
The StaxStreamXMLReader no longer handles all whitespace as ignorable
whitespace.
Issue: SPR-12000
(cherry picked from commit d6950d8)
12 years ago
Juergen Hoeller
d45f743248
TypeDescriptor's getResolvableType() and getSource() are @since 4.0
...
(cherry picked from commit 0ce90f1)
12 years ago
Juergen Hoeller
940ae0c528
ClassUtils.isCacheSafe defensively catches SecurityException (for Google App Engine compatibility)
...
Issue: SPR-12002
(cherry picked from commit 48fea0b)
12 years ago
Juergen Hoeller
0ef17a2f2c
NestedIOException can use IOException constructor with cause argument on JDK 6+
...
(cherry picked from commit c18b6bf)
12 years ago
Juergen Hoeller
845528a6cb
Polishing
12 years ago
Juergen Hoeller
10a039000b
Test ASM5's bytecode parsing of INVOKESPECIAL/STATIC on interfaces
...
Issue: SPR-11979
(cherry picked from commit 29f6f3d)
12 years ago
Juergen Hoeller
48f753f368
Polishing (backported from master)
12 years ago
Juergen Hoeller
c16032b98a
Consistent declaration of private static final logger variables
...
Issue: SPR-11905
(cherry picked from commit 18131bf)
12 years ago
Juergen Hoeller
5f695a47db
Cache Class.getDeclaredMethods() results and avoid pattern matching in isCglibRenamedMethod as far as possible
...
Issue: SPR-11882
Issue: SPR-11894
12 years ago
Juergen Hoeller
74c878ee0e
AnnotationUtils defensively catches and logs unexpected exceptions from retrieval attempts (proceeding like the annotation wasn't there)
...
Issue: SPR-11874
(cherry picked from commit 2c0c081)
12 years ago
Juergen Hoeller
6403479902
TypeDescriptor's nested type traversal leniently returns null in case of unresolvable nested type
...
Issue: SPR-11898
(cherry picked from commit d663580)
12 years ago
Juergen Hoeller
8ddbbc2e67
PathMatchingResourcePatternResolver's findPathMatchingResources needs to check for VFS before checking isJarResource
...
ResourceUtils isFileURL also detects "vfsfile" as a file system protocol (again).
Issue: SPR-11887
12 years ago
Juergen Hoeller
ccebbf74ec
Latest patches from ASM trunk
...
(cherry picked from commit cfc720d)
12 years ago
Juergen Hoeller
c350080f99
StringUtils.parseLocaleString parses variant correctly when variant contains country code
...
This commit also includes a JUnit 4 style revision of StringUtilsTests and ObjectUtilsTests.
Issue: SPR-11806
(cherry picked from commit 295a6ae)
12 years ago
Rossen Stoyanchev
748167bfa3
Improve StringUtils.cleanPath
...
Issue: SPR-11793
12 years ago
Juergen Hoeller
7bc38acbf6
Polishing
12 years ago
Juergen Hoeller
297e4eec36
Keep unused MemorySafeUndeclaredThrowableStrategy around in deprecated form for the 4.0.x line
...
Issue: SPR-11782
12 years ago
Juergen Hoeller
1e7fade89e
JasperReports-related polishing
...
(cherry picked from commit 782d10c)
12 years ago
Juergen Hoeller
ae45794451
IdToEntityConverter defensively handles access to getDeclaredMethods
...
Issue: SPR-11758
(cherry picked from commit 381ccde)
12 years ago
Juergen Hoeller
fccec210b4
GenericTypeResolver returns null for entirely unresolvable type arguments only
...
Issue: SPR-11763
(cherry picked from commit bea34ea)
12 years ago
Juergen Hoeller
42a35ef3be
AnnotationMetadataReadingVisitor passes metaAnnotationMap into getMergedAnnotationAttributes algorithm, for finding out about applicable overrides
...
Issue: SPR-11649
(cherry picked from commit 842a8a8)
12 years ago
Juergen Hoeller
1afdd9bd75
Polishing
...
(cherry picked from commit 02aca9c)
12 years ago
Juergen Hoeller
d0c839f0eb
Polishing
12 years ago
Juergen Hoeller
a679f3e7a3
Polishing
...
(cherry picked from commit be5f2a8)
12 years ago
Juergen Hoeller
bd5b3749c5
Revised @PropertySource parsing for consistent PropertySource naming, avoiding accidental overriding by name
...
Issue: SPR-11637
(cherry picked from commit ab24dda)
12 years ago
Juergen Hoeller
c97c246940
Polishing
12 years ago
Juergen Hoeller
59cef3ce81
General defensiveness about the bootstrap ClassLoader (i.e. null ClassLoader)
...
Issue: SPR-11721
12 years ago
Juergen Hoeller
656fc52ff9
@Bean processing explicitly ignores bridge methods (for method overrides with return type narrowing on JDK 8)
...
Issue: SPR-11718
(cherry picked from commit dc93406)
12 years ago
Juergen Hoeller
51fb485181
Polishing
...
(cherry picked from commit 9353332)
12 years ago
Juergen Hoeller
f16e6c4105
General defensiveness about the bootstrap ClassLoader (i.e. null ClassLoader)
...
Issue: SPR-11721
(cherry picked from commit c05ab3e)
12 years ago
Juergen Hoeller
eb28259371
SpringProperties falls back to ClassLoader.getSystemResource when loaded in bootstrap ClassLoader
...
Issue: SPR-11721
(cherry picked from commit 9cb5f48)
12 years ago
Juergen Hoeller
5aa126600f
Final patches from ASM 5.0.2 release
...
Issue: SPR-11212
(cherry picked from commit fb66567)
12 years ago
Juergen Hoeller
d5aacdefd9
Polishing
...
(cherry picked from commit 700c3b2)
12 years ago
Juergen Hoeller
e379e77b96
considerInterfaces should work without considerInherited as well
...
Issue: SPR-11719
(cherry picked from commit 5ab7076)
12 years ago
Juergen Hoeller
9c45755890
AnnotationTypeFilter prevents ASM-based loading of java.* interfaces as well
...
Issue: SPR-11719
(cherry picked from commit 945335d)
12 years ago
HejiaHo
f6b89c2ca9
Fix ConcurrentReferenceHashMap max constraints
...
Update calculateShift to respect the maximum upper bound as well as the
minimum value.
Issue: SPR-11720
(cherry picked from commit 16410cad)
12 years ago