diff --git a/spring-expression/src/main/java/org/springframework/expression/spel/ast/MethodReference.java b/spring-expression/src/main/java/org/springframework/expression/spel/ast/MethodReference.java index ad8c8b696482..33756cab0e78 100644 --- a/spring-expression/src/main/java/org/springframework/expression/spel/ast/MethodReference.java +++ b/spring-expression/src/main/java/org/springframework/expression/spel/ast/MethodReference.java @@ -54,10 +54,10 @@ */ 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 MethodReference(boolean nullSafe, String methodName, int startPos, int en } + /** + * Get the name of the referenced method. + */ public final String getName() { return this.name; } diff --git a/spring-expression/src/main/java/org/springframework/expression/spel/ast/PropertyOrFieldReference.java b/spring-expression/src/main/java/org/springframework/expression/spel/ast/PropertyOrFieldReference.java index 28762153950b..dc891da4a4f6 100644 --- a/spring-expression/src/main/java/org/springframework/expression/spel/ast/PropertyOrFieldReference.java +++ b/spring-expression/src/main/java/org/springframework/expression/spel/ast/PropertyOrFieldReference.java @@ -73,10 +73,16 @@ public PropertyOrFieldReference(boolean nullSafe, String propertyOrFieldName, in } + /** + * 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; }