mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-07 03:06:03 +08:00
isNumericChar() - switch comparison order
This commit is contained in:
@@ -90,7 +90,7 @@ class NumberConversionUtil {
|
|||||||
* @return true if the character is a numeric digit, false otherwise.
|
* @return true if the character is a numeric digit, false otherwise.
|
||||||
*/
|
*/
|
||||||
private static boolean isNumericChar(char c) {
|
private static boolean isNumericChar(char c) {
|
||||||
return (c >= '0' && c <= '9');
|
return (c <= '9' && c >= '0');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user