Skip to content

Commit 0d22569

Browse files
committed
Polishing
1 parent 06658c3 commit 0d22569

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
*/
5555
public class MethodReference extends SpelNodeImpl {
5656

57-
private final String name;
58-
5957
private final boolean nullSafe;
6058

59+
private final String name;
60+
6161
@Nullable
6262
private String originalPrimitiveExitTypeDescriptor;
6363

@@ -72,6 +72,9 @@ public MethodReference(boolean nullSafe, String methodName, int startPos, int en
7272
}
7373

7474

75+
/**
76+
* Get the name of the referenced method.
77+
*/
7578
public final String getName() {
7679
return this.name;
7780
}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,16 @@ public PropertyOrFieldReference(boolean nullSafe, String propertyOrFieldName, in
7373
}
7474

7575

76+
/**
77+
* Does this node represent a null-safe property or field reference?
78+
*/
7679
public boolean isNullSafe() {
7780
return this.nullSafe;
7881
}
7982

83+
/**
84+
* Get the name of the referenced property or field.
85+
*/
8086
public String getName() {
8187
return this.name;
8288
}

0 commit comments

Comments
 (0)