Browse Source

Polishing

pull/31496/head
Sam Brannen 1 year ago
parent
commit
0d22569422
  1. 7
      spring-expression/src/main/java/org/springframework/expression/spel/ast/MethodReference.java
  2. 6
      spring-expression/src/main/java/org/springframework/expression/spel/ast/PropertyOrFieldReference.java

7
spring-expression/src/main/java/org/springframework/expression/spel/ast/MethodReference.java

@ -54,10 +54,10 @@ import org.springframework.util.ObjectUtils; @@ -54,10 +54,10 @@ import org.springframework.util.ObjectUtils;
*/
public class MethodReference extends SpelNodeImpl {
private final String name;
private final boolean nullSafe;
private final String name;
@Nullable
private String originalPrimitiveExitTypeDescriptor;
@ -72,6 +72,9 @@ public class MethodReference extends SpelNodeImpl { @@ -72,6 +72,9 @@ public class MethodReference extends SpelNodeImpl {
}
/**
* Get the name of the referenced method.
*/
public final String getName() {
return this.name;
}

6
spring-expression/src/main/java/org/springframework/expression/spel/ast/PropertyOrFieldReference.java

@ -73,10 +73,16 @@ public class PropertyOrFieldReference extends SpelNodeImpl { @@ -73,10 +73,16 @@ public class PropertyOrFieldReference extends SpelNodeImpl {
}
/**
* Does this node represent a null-safe property or field reference?
*/
public boolean isNullSafe() {
return this.nullSafe;
}
/**
* Get the name of the referenced property or field.
*/
public String getName() {
return this.name;
}

Loading…
Cancel
Save