mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-02 11:05:28 -04:00
isNumericChar() - switch comparison order
This commit is contained in:
parent
4a468d163a
commit
aba82d9cc4
@ -90,7 +90,7 @@ class NumberConversionUtil {
|
||||
* @return true if the character is a numeric digit, false otherwise.
|
||||
*/
|
||||
private static boolean isNumericChar(char c) {
|
||||
return (c >= '0' && c <= '9');
|
||||
return (c <= '9' && c >= '0');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user