File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/apache/ibatis/parsing Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -154,23 +154,23 @@ public Long getLongBody() {
154
154
}
155
155
156
156
public Long getLongBody (Long def ) {
157
- return body == null ? def : Long .parseLong (body );
157
+ return body == null ? def : Long .valueOf (body );
158
158
}
159
159
160
160
public Double getDoubleBody () {
161
161
return getDoubleBody (null );
162
162
}
163
163
164
164
public Double getDoubleBody (Double def ) {
165
- return body == null ? def : Double .parseDouble (body );
165
+ return body == null ? def : Double .valueOf (body );
166
166
}
167
167
168
168
public Float getFloatBody () {
169
169
return getFloatBody (null );
170
170
}
171
171
172
172
public Float getFloatBody (Float def ) {
173
- return body == null ? def : Float .parseFloat (body );
173
+ return body == null ? def : Float .valueOf (body );
174
174
}
175
175
176
176
public <T extends Enum <T >> T getEnumAttribute (Class <T > enumType , String name ) {
You can’t perform that action at this time.
0 commit comments