Skip to content

Commit b6c49d4

Browse files
authored
remove use of hardcoded double value that is no longer needed (#313)
1 parent 9bc6d59 commit b6c49d4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

csv/src/main/java/com/fasterxml/jackson/dataformat/csv/impl/NumberInput.java

+5-6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
public final class NumberInput
66
{
77
/**
8-
* Textual representation of a double constant that can cause nasty problems
9-
* with JDK (see http://www.exploringbinary.com/java-hangs-when-converting-2-2250738585072012e-308).
8+
* Formerly used constant for a value that was problematic on certain
9+
* pre-1.8 JDKs.
10+
*
11+
* @deprecated Since 2.14 -- do not use
1012
*/
13+
@Deprecated //since v2.14.0
1114
public final static String NASTY_SMALL_DOUBLE = "2.2250738585072012e-308";
1215

1316
/**
@@ -93,10 +96,6 @@ public final static boolean inLongRange(char[] digitChars, int offset, int len,
9396

9497
public final static double parseDouble(String numStr) throws NumberFormatException
9598
{
96-
// [JACKSON-486]: avoid some nasty float representations... but should it be MIN_NORMAL or MIN_VALUE?
97-
if (NASTY_SMALL_DOUBLE.equals(numStr)) {
98-
return Double.MIN_VALUE;
99-
}
10099
return Double.parseDouble(numStr);
101100
}
102101
}

0 commit comments

Comments
 (0)