File tree 1 file changed +3
-4
lines changed
src/main/java/org/apache/ibatis/mapping
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 27
27
*/
28
28
public class ParameterMapping {
29
29
30
+ private static Object UNSET = new Object ();
30
31
private Configuration configuration ;
31
32
32
33
private String property ;
@@ -38,8 +39,7 @@ public class ParameterMapping {
38
39
private String resultMapId ;
39
40
private String jdbcTypeName ;
40
41
private String expression ;
41
- private Object value ;
42
- private boolean hasValue ;
42
+ private Object value = UNSET ;
43
43
44
44
private ParameterMapping () {
45
45
}
@@ -103,7 +103,6 @@ public Builder expression(String expression) {
103
103
104
104
public Builder value (Object value ) {
105
105
parameterMapping .value = value ;
106
- parameterMapping .hasValue = true ;
107
106
return this ;
108
107
}
109
108
@@ -218,7 +217,7 @@ public Object getValue() {
218
217
}
219
218
220
219
public boolean hasValue () {
221
- return hasValue ;
220
+ return value != UNSET ;
222
221
}
223
222
224
223
@ Override
You can’t perform that action at this time.
0 commit comments