From 95eac8c6805f949a46608d4630038168af229d53 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Tue, 7 Mar 2017 13:25:57 +0100 Subject: [PATCH] fixed files form Lang #16 --- projects/Lang/16/org/apache/commons/lang3/math/NumberUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/Lang/16/org/apache/commons/lang3/math/NumberUtils.java b/projects/Lang/16/org/apache/commons/lang3/math/NumberUtils.java index 882358f..5b7891a 100644 --- a/projects/Lang/16/org/apache/commons/lang3/math/NumberUtils.java +++ b/projects/Lang/16/org/apache/commons/lang3/math/NumberUtils.java @@ -455,7 +455,7 @@ public static Number createNumber(String str) throws NumberFormatException { // a wrong value. return null; } - if (str.startsWith("0x") || str.startsWith("-0x")) { + if (str.startsWith("0x") || str.startsWith("-0x") || str.startsWith("0X") || str.startsWith("-0X")) { return createInteger(str); } char lastChar = str.charAt(str.length() - 1);