Juergen Hoeller
211f0bbf88
Fix invalid characters in source files
...
Closes gh-27475
4 years ago
Juergen Hoeller
0dc5d2794f
Avoid early ConversionService determination in StandardBeanExpressionResolver
...
Closes gh-27446
4 years ago
Juergen Hoeller
b8b85a6a59
Defensive handling of dimensions nullability
4 years ago
Brian Clozel
cecc0849a8
Upgrade to Gradle 7.2
...
This commit upgrades Gradle to 7.2.
Gradle configuration names are updated accordingly.
This also upgrades Gradle build plugins.
See gh-26870
4 years ago
Syuziko
eaf9deedfd
Polish tests
...
See gh-27248
4 years ago
Stephane Nicoll
403e1f2505
Update copyright year of changed file
...
See gh-27102
5 years ago
diguage
f39c6d36c7
Simplify Comparator using method references
...
See gh-27102
5 years ago
Sam Brannen
a2ef6badc4
Use StringBuilder.append(char) where possible
...
To slightly improve performance, this commit switches to
StringBuilder.append(char) instead of StringBuilder.append(String)
whenever we append a single character to a StringBuilder.
Closes gh-27098
5 years ago
Sam Brannen
7c3a18490b
Polish SpEL SelectionAndProjectionTests
5 years ago
Sam Brannen
6c3a0a9026
Polishing
5 years ago
Brandon Fergerson
432c720dd0
Allow spring-expression to be more easily repackaged
...
This commit allows the spring-expression module to be more easily repackaged
for embedding in third-party JARs -- for example, via the Shadow Gradle plugin.
Closes gh-26779
5 years ago
Rossen Stoyanchev
1e481cd14c
Fix checkstyle violation
5 years ago
Sam Brannen
8589804012
Link to known property name constants in SpringProperties
5 years ago
Juergen Hoeller
01fb4dbeba
Polishing
...
See gh-26237
5 years ago
fengyuanwei
07fadae27d
Remove duplicate "property" in PropertyCacheKey.toString()
5 years ago
Sam Brannen
7b3f53de50
Polish SpelParserTests
5 years ago
limo520
ef05eb3729
Fix assertions in SpelParserTests.generalExpressions
...
Closes gh-26211
Co-authored-by: fengyuanwei <fengyuanwei@wondersgroup.com>
5 years ago
Сергей Цыпанов
83996b12cc
Simplify AstUtils.getPropertyAccessorsToTry()
5 years ago
Juergen Hoeller
19911af30a
Polishing
5 years ago
Juergen Hoeller
6acb091c4e
Upgrade SpelCompiler bytecode level to 1.8 and optimize for concurrent access
...
Closes gh-26033
5 years ago
Juergen Hoeller
4e8d6bea4d
Fix test code formatting
5 years ago
Juergen Hoeller
079ca80854
SpEL supports record-style accessor methods as well
...
Closes gh-26029
5 years ago
Sam Brannen
449377908f
Fix JUnit 4 to AssertJ migration bugs
...
The migration from JUnit 4 assertions to AssertJ assertions resulted in
several unnecessary casts from int to long that actually cause
assertions to pass when they should otherwise fail.
This commit fixes all such bugs for the pattern `.isNotEqualTo((long)`.
5 years ago
Juergen Hoeller
621295dbd8
Deprecate StringUtils.isEmpty(Object) and replace remaining usage
...
Closes gh-25945
5 years ago
Сергей Цыпанов
8a04910bdd
Drop explicit zeroing at instantiation of Atomic* objects
5 years ago
Brian Clozel
61d893257e
Rewrite "performance" test to JMH benchmarks
...
This commit rewrites the remaining "fastEnough" performance tests into
proper JMH benchmarks.
See gh-24830
5 years ago
Juergen Hoeller
3fd89c3ac1
Fix merge result
...
See gh-25706
5 years ago
Juergen Hoeller
c368ce8223
Fix SpEL generated code for default method invocation
...
Closes gh-25706
5 years ago
Andy Clement
a404bf5a94
Fix SpEL generated code for default method invocation
...
Closes gh-25706
5 years ago
Juergen Hoeller
874574513c
Replace remaining usage of LinkedList with ArrayList/ArrayDeque
...
Closes gh-25650
5 years ago
XenoAmess
3b12beb1b8
Simplify if-statements with instanceof checks
...
Closes gh-25449
5 years ago
Sam Brannen
111899aa63
Add @Nullable declaration to getDefaultConstructor()
...
See gh-25367
6 years ago
Sam Brannen
b0570cd3a6
Polish contribution
...
See gh-25367
6 years ago
Martin Knopf
35c0ae7b0c
Allow auto grow for entries w/o default constructor in SpEL
...
Prior to this commit, The "auto grow" feature in SpEL expressions only
worked for element types with a default constructor. For example, auto
grow did not work for a list of BigDecimal elements.
This commit inserts a null value in the list when no default
constructor can be found for the element type.
Closes gh-25367
6 years ago
Sam Brannen
12e05280ad
Upgrade to AssertJ 3.16
6 years ago
陈其苗
13970ae528
Use autoboxing instead of explicit wrapping in tests
...
Closes gh-24801
6 years ago
Sam Brannen
e26764d249
Remove duplicate words in documentation and polish Javadoc
6 years ago
Sam Brannen
c3bc28762e
Delete unused import in ExpressionLanguageScenarioTests
...
See gh-24586
6 years ago
ZhangT
c5fb7b9fb7
Simplify some redundant code
...
Closes gh-24586
Co-authored-by: Sam Brannen <sbrannen@pivotal.io>
6 years ago
Sam Brannen
a9d9b76d09
Support SpEL compilation of interface methods again
...
Spring Framework 5.1.8 introduced a regression for the compilation of
SpEL expressions referencing a method declared in an interface. An
attempt to compile such an expression resulted in a
SpelEvaluationException caused by an IncompatibleClassChangeError.
This commit fixes this regression by adding explicit support in
ReflectivePropertyAccessor.OptimalPropertyAccessor.generateCode() for
methods declared in interfaces.
Closes gh-24357
6 years ago
Juergen Hoeller
259ffe9b3b
Thread-safe compiled expression evaluation in SpelExpression
...
Closes gh-24265
6 years ago
Sam Brannen
4260c34b47
Rename test fixture package in spring-core
...
See gh-23550
6 years ago
Sam Brannen
5718bf424b
Use Gradle test fixture support for spring-core
...
See gh-23550
6 years ago
Sébastien Deleuze
7646895fd4
Support Kotlin synthetic classes in MethodParameter and SpEL
...
Closes gh-23812
6 years ago
stsypanov
f5ae3c77c6
Use Method::getParameterCount where possible
6 years ago
Sam Brannen
734ceed301
Polish contribution
...
See gh-23658
6 years ago
i321222
fde7b1e545
Avoid ArrayIndexOutOfBoundsException in SpEL's Indexer
...
When index == arrayLength, the array index is also out of bounds.
For this scenario, a SpelEvaluationException should be thrown instead
of ArrayIndexOutOfBoundsException.
Closes gh-23658
6 years ago
Sam Brannen
2b460854ce
Polishing
6 years ago
Sam Brannen
e124cbb310
Fix Checkstyle violation
6 years ago
OLPMO
40fcf876ce
Optimize test code with lambdas where feasible
...
This commit optimizes test code with lambda expressions
and method references where feasible.
Closes gh-23626
6 years ago