From cd26881348c403f75ec8a0a090255a876aa2be59 Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Mon, 31 Jan 2022 23:48:15 +0100 Subject: Decprecate public org.json --- .../src/main/java/com/yahoo/data/JsonProducer.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'container-search/src/main/java/com/yahoo/data') 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(); -- cgit v1.2.3