mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
isNumber update
This commit is contained in:
@@ -119,18 +119,4 @@ public class StringUtils {
|
||||
}
|
||||
return h;
|
||||
}
|
||||
|
||||
public static boolean isNumeric(final CharSequence cs) {
|
||||
if (isEmpty(cs)) {
|
||||
return false;
|
||||
}
|
||||
final int sz = cs.length();
|
||||
for (int i = 0; i < sz; i++) {
|
||||
if (!Character.isDigit(cs.charAt(i))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user