aboutsummaryrefslogtreecommitdiffstats
path: root/vespajlib/src/main/java/com/yahoo/text/DoubleParser.java
diff options
context:
space:
mode:
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/text/DoubleParser.java')
-rw-r--r--vespajlib/src/main/java/com/yahoo/text/DoubleParser.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/text/DoubleParser.java b/vespajlib/src/main/java/com/yahoo/text/DoubleParser.java
deleted file mode 100644
index 0a777f3000f..00000000000
--- a/vespajlib/src/main/java/com/yahoo/text/DoubleParser.java
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.text;
-
-/**
- * Utility class to parse a String into a double.
- * <p>
- * This was intended as a lower-cost replacement for the standard
- * Double.parseDouble(String) since that method used to cause lock
- * contention.
- * <p>
- * The contention issue is fixed in Java 8u96 so this class is now obsolete.
- *
- * @author arnej27959
- */
-@Deprecated
-public final class DoubleParser {
-
- /**
- * Utility method that parses a String and returns a double.
- *
- * @param data the String to parse
- * @return double parsed value of the string
- * @throws NumberFormatException if the string is not a well-formatted number
- * @throws NullPointerException if the string is a null pointer
- */
- public static double parse(String data) {
- return Double.parseDouble(data);
- }
-}