Browse Source

Polishing

pull/31496/head
Sam Brannen 2 years 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;
*/ */
public class MethodReference extends SpelNodeImpl { public class MethodReference extends SpelNodeImpl {
private final String name;
private final boolean nullSafe; private final boolean nullSafe;
private final String name;
@Nullable @Nullable
private String originalPrimitiveExitTypeDescriptor; private String originalPrimitiveExitTypeDescriptor;
@ -72,6 +72,9 @@ public class MethodReference extends SpelNodeImpl {
} }
/**
* Get the name of the referenced method.
*/
public final String getName() { public final String getName() {
return this.name; 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 {
} }
/**
* Does this node represent a null-safe property or field reference?
*/
public boolean isNullSafe() { public boolean isNullSafe() {
return this.nullSafe; return this.nullSafe;
} }
/**
* Get the name of the referenced property or field.
*/
public String getName() { public String getName() {
return this.name; return this.name;
} }

Loading…
Cancel
Save