summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/data
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-01-31 23:48:15 +0100
committerJon Bratseth <bratseth@gmail.com>2022-01-31 23:48:15 +0100
commitcd26881348c403f75ec8a0a090255a876aa2be59 (patch)
tree12505646c7fc6fdcdb9b621dfae914adae63b2d3 /container-search/src/main/java/com/yahoo/data
parent6e92177dbbf6023cabaaa0c8ac24a82cd155b0e3 (diff)
Decprecate public org.json
Diffstat (limited to 'container-search/src/main/java/com/yahoo/data')
-rw-r--r--container-search/src/main/java/com/yahoo/data/JsonProducer.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/container-search/src/main/java/com/yahoo/data/JsonProducer.java b/container-search/src/main/java/com/yahoo/data/JsonProducer.java
index 873f2a517d0..763a75d1a46 100644
--- a/container-search/src/main/java/com/yahoo/data/JsonProducer.java
+++ b/container-search/src/main/java/com/yahoo/data/JsonProducer.java
@@ -8,21 +8,17 @@ public interface JsonProducer {
/**
* Append the JSON representation of this object's data to a StringBuilder.
- * Note that when passing compact=false the generated string will
- * be human-readable and containing embedded newlines; also the
- * exact indentation etc may change, so use compact=true for a
- * canonical format.
*
- * @param target the StringBuilder to append to.
- * @return the target passed in is also returned (to allow chaining).
+ * @param target the StringBuilder to append to
+ * @return the target passed in is also returned (to allow chaining)
*/
StringBuilder writeJson(StringBuilder target);
/**
- * Convenience method equivalent to:
+ * Convenience method equivalent to
* writeJson(new StringBuilder()).toString()
*
- * @return a String containing JSON representation of this object's data.
+ * @return a String containing JSON representation of this object's data
*/
default String toJson() {
return writeJson(new StringBuilder()).toString();