Polishing

This commit is contained in:
Sam Brannen 2023-09-27 16:34:18 +02:00
parent 06658c3c71
commit 0d22569422
2 changed files with 11 additions and 2 deletions

View File

@ -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 {
}
/**
* Get the name of the referenced method.
*/
public final String getName() {
return this.name;
}

View File

@ -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;
}