diff options
author | gjoranv <gv@oath.com> | 2018-09-18 11:55:14 +0200 |
---|---|---|
committer | gjoranv <gv@oath.com> | 2019-01-21 15:09:21 +0100 |
commit | 5e60182e9d869e41b80bca9785d34d59cf4c5d1a (patch) | |
tree | 8efeb9d5d32cdad1ebea4e4683242771f8658a58 /vespajlib/src/main/java | |
parent | cd5957a7fae00e4bd598960aec83cb24896ef62a (diff) |
Remove deprecated DoubleParser.
Diffstat (limited to 'vespajlib/src/main/java')
-rw-r--r-- | vespajlib/src/main/java/com/yahoo/text/DoubleParser.java | 29 |
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); - } -} |