aboutsummaryrefslogtreecommitdiffstats
path: root/vespajlib/src
diff options
context:
space:
mode:
authorHåkon Hallingstad <hakon@verizonmedia.com>2020-04-16 09:54:46 +0200
committerHåkon Hallingstad <hakon@verizonmedia.com>2020-04-16 09:54:46 +0200
commit1d6c35a5ea4426f4b55a6c06d93330b0e5a7bbac (patch)
tree1c535bdb5819c4a4966bc9dd784cab4031beb4fb /vespajlib/src
parent1eecdac6160ea9f7ed6de5e3fc478bc211561dc2 (diff)
More descriptive message when mistyping flag data field
Diffstat (limited to 'vespajlib/src')
-rw-r--r--vespajlib/src/main/java/com/yahoo/text/JSON.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/text/JSON.java b/vespajlib/src/main/java/com/yahoo/text/JSON.java
index 11e5be9328e..2757bd7945c 100644
--- a/vespajlib/src/main/java/com/yahoo/text/JSON.java
+++ b/vespajlib/src/main/java/com/yahoo/text/JSON.java
@@ -64,7 +64,8 @@ public final class JSON {
*
* <p>When comparing two numbers of the two JSON strings, the result is only guaranteed to be
* correct if (a) both are integers (without fraction and exponent) and each fits in a long, or
- * (b) both are non-integers, are syntactically identical, and fits in a double.</p>
+ * (b) both are non-integers, fits in a double, and are syntactically identical. Examples
+ * of pairs that may not be equal: 1 and 1.0 (different types), 0.1 and 1e-1, 0.0 and 0.00.</p>
*
* @throws RuntimeException on invalid JSON
*/