Skip to content

Commit eb580aa

Browse files
optimize DoubleConverter
1 parent 4cab916 commit eb580aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickfixj-core/src/main/java/quickfix/field/converter/DoubleConverter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private static double parseDouble(String value) {
106106
for (; i < value.length(); i++) {
107107
c = value.charAt(i);
108108
if (!dot && c == '.') dot = true;
109-
else if (!Character.isDigit(c)) throw new NumberFormatException(value);
109+
else if (c < '0' || c > '9') throw new NumberFormatException(value);
110110
}
111111
return Double.parseDouble(value);
112112
}

0 commit comments

Comments
 (0)