Skip to content

Commit 8ea5773

Browse files
committed
solve PR requested
1 parent 5a26fd1 commit 8ea5773

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/apache/ibatis/parsing/XNode.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,23 +154,23 @@ public Long getLongBody() {
154154
}
155155

156156
public Long getLongBody(Long def) {
157-
return body == null ? def : Long.parseLong(body);
157+
return body == null ? def : Long.valueOf(body);
158158
}
159159

160160
public Double getDoubleBody() {
161161
return getDoubleBody(null);
162162
}
163163

164164
public Double getDoubleBody(Double def) {
165-
return body == null ? def : Double.parseDouble(body);
165+
return body == null ? def : Double.valueOf(body);
166166
}
167167

168168
public Float getFloatBody() {
169169
return getFloatBody(null);
170170
}
171171

172172
public Float getFloatBody(Float def) {
173-
return body == null ? def : Float.parseFloat(body);
173+
return body == null ? def : Float.valueOf(body);
174174
}
175175

176176
public <T extends Enum<T>> T getEnumAttribute(Class<T> enumType, String name) {

0 commit comments

Comments
 (0)