mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-09 14:31:17 +00:00
Fix invalid integer detection
This commit is contained in:
parent
c58703c63f
commit
5026ff3506
@ -112,6 +112,9 @@ public class Utilities {
|
||||
return false;
|
||||
}
|
||||
String value = string.startsWith("-") ? string.substring(1) : string;
|
||||
if (Utilities.noString(value)) {
|
||||
return false;
|
||||
}
|
||||
for (char next : value.toCharArray()) {
|
||||
if (!Character.isDigit(next)) {
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user