diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-12-13 21:25:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-13 21:25:04 +0100 |
commit | d976f82207c09b3215661e1d034ae9a42f28a63d (patch) | |
tree | 2d301a94e4326e1b9493f77a8b4419073de6a379 /document/src/main | |
parent | 4f48e420144ab7288fe45406bd4d1ea69de6eecb (diff) |
Revert "add parsing of special strings for inf/nan cell values"
Diffstat (limited to 'document/src/main')
-rw-r--r-- | document/src/main/java/com/yahoo/document/json/readers/TensorReader.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/document/src/main/java/com/yahoo/document/json/readers/TensorReader.java b/document/src/main/java/com/yahoo/document/json/readers/TensorReader.java index 0b7b1ae9996..e487fd2ec57 100644 --- a/document/src/main/java/com/yahoo/document/json/readers/TensorReader.java +++ b/document/src/main/java/com/yahoo/document/json/readers/TensorReader.java @@ -14,7 +14,6 @@ import com.yahoo.tensor.TensorType; import static com.yahoo.document.json.readers.JsonParserHelpers.*; import static com.yahoo.tensor.serialization.JsonFormat.decodeHexString; -import static com.yahoo.tensor.serialization.JsonFormat.decodeNumberString; /** * Reads the tensor format defined at @@ -244,9 +243,6 @@ public class TensorReader { private static double readDouble(TokenBuffer buffer) { try { - if (buffer.current() == JsonToken.VALUE_STRING) { - return decodeNumberString(buffer.currentText()); - } return Double.parseDouble(buffer.currentText()); } catch (NumberFormatException e) { |