diff --git a/src/main/java/com/fasterxml/jackson/core/util/DefaultPrettyPrinter.java b/src/main/java/com/fasterxml/jackson/core/util/DefaultPrettyPrinter.java index 3142e95795..98f650a4a1 100644 --- a/src/main/java/com/fasterxml/jackson/core/util/DefaultPrettyPrinter.java +++ b/src/main/java/com/fasterxml/jackson/core/util/DefaultPrettyPrinter.java @@ -11,13 +11,15 @@ * Usually this class is not instantiated directly, but instead * method {@link JsonGenerator#useDefaultPrettyPrinter} is * used, which will use an instance of this class for operation. - * - * This class is designed for the JSON data format. If you are using - * a different data format, you should use a {@link PrettyPrinter} - * implementation designed to support that format. - * + *

* If you override this class, take note of {@link Instantiatable}, * as subclasses will still create an instance of DefaultPrettyPrinter. + *

+ * This class is designed for the JSON data format. It works on other formats + * with same logical model (such as binary {@code CBOR} and {@code Smile} formats), + * but may not work as-is for other data formats, most notably {@code XML}. + * It may be necessary to use format-specific {@link PrettyPrinter} + * implementation specific to that format. */ @SuppressWarnings("serial") public class DefaultPrettyPrinter