Apply "instanceof pattern matching" in spring-expression
This commit also applies additional clean-up tasks such as the following.
- final fields
This commit also makes use of java.lang.String.repeat(int) in OptMultiply.
This has only been applied to `src/main/java`.
@ -136,8 +136,8 @@ public class ConstructorReference extends SpelNodeImpl {
@@ -136,8 +136,8 @@ public class ConstructorReference extends SpelNodeImpl {
@ -158,9 +158,9 @@ public class ConstructorReference extends SpelNodeImpl {
@@ -158,9 +158,9 @@ public class ConstructorReference extends SpelNodeImpl {
@ -228,14 +228,13 @@ public class ConstructorReference extends SpelNodeImpl {
@@ -228,14 +228,13 @@ public class ConstructorReference extends SpelNodeImpl {
@ -91,8 +92,7 @@ public class PropertyOrFieldReference extends SpelNodeImpl {
@@ -91,8 +92,7 @@ public class PropertyOrFieldReference extends SpelNodeImpl {
@ -196,8 +196,8 @@ public class PropertyOrFieldReference extends SpelNodeImpl {
@@ -196,8 +196,8 @@ public class PropertyOrFieldReference extends SpelNodeImpl {
@ -330,9 +330,8 @@ public class PropertyOrFieldReference extends SpelNodeImpl {
@@ -330,9 +330,8 @@ public class PropertyOrFieldReference extends SpelNodeImpl {
@ -404,9 +403,8 @@ public class PropertyOrFieldReference extends SpelNodeImpl {
@@ -404,9 +403,8 @@ public class PropertyOrFieldReference extends SpelNodeImpl {
@ -123,7 +123,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -123,7 +123,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -160,7 +160,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -160,7 +160,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -231,7 +231,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -231,7 +231,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -269,7 +269,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -269,7 +269,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
}
Assert.state(target!=null,"Target must not be null");
@ -346,7 +346,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -346,7 +346,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -533,18 +533,18 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -533,18 +533,18 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -561,7 +561,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -561,7 +561,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -600,7 +600,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -600,7 +600,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -613,10 +613,9 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -613,10 +613,9 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -676,13 +675,12 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -676,13 +675,12 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -697,8 +695,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -697,8 +695,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -739,8 +736,8 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -739,8 +736,8 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@Override
publicClass<?>getPropertyType(){
if(this.memberinstanceofMethod){
return((Method)this.member).getReturnType();
if(this.memberinstanceofMethodmethod){
returnmethod.getReturnType();
}
else{
return((Field)this.member).getType();
@ -769,8 +766,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@@ -769,8 +766,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
@ -62,10 +62,7 @@ public class StandardTypeComparator implements TypeComparator {
@@ -62,10 +62,7 @@ public class StandardTypeComparator implements TypeComparator {
@ -95,7 +92,7 @@ public class StandardTypeComparator implements TypeComparator {
@@ -95,7 +92,7 @@ public class StandardTypeComparator implements TypeComparator {