diff --git a/release-notes/CREDITS b/release-notes/CREDITS index 4b65f260cc..c0cd77dcbf 100644 --- a/release-notes/CREDITS +++ b/release-notes/CREDITS @@ -81,3 +81,6 @@ Lokesh Kumar N (LokeshN@github) * Contributed fix for #117: Support for missing values (non-compliant JSON) (2.8.0) +Mikael Staldal (mikaelstaldal@github) + * Contributed fix for #265: `JsonStringEncoder` should allow passing `CharSequence` + (2.8.0) diff --git a/release-notes/VERSION b/release-notes/VERSION index 01bddc0dcd..5e47a19691 100644 --- a/release-notes/VERSION +++ b/release-notes/VERSION @@ -22,6 +22,8 @@ JSON library. (suggested by Gregoire C) #255: Relax ownership checks for buffers not to require increase in size #257: Add `writeStartObject(Object pojo)` to streamline assignment of current value +#265: `JsonStringEncoder` should allow passing `CharSequence` + (contributed by Mikael S) #280: Add `JsonParser.finishToken()` to force full, non-lazy reading of current token 2.7.4 (not yet released) diff --git a/src/main/java/com/fasterxml/jackson/core/io/JsonStringEncoder.java b/src/main/java/com/fasterxml/jackson/core/io/JsonStringEncoder.java index b4ccbf9077..521237fd4f 100644 --- a/src/main/java/com/fasterxml/jackson/core/io/JsonStringEncoder.java +++ b/src/main/java/com/fasterxml/jackson/core/io/JsonStringEncoder.java @@ -151,8 +151,9 @@ public char[] quoteAsString(String input) /** * Method that will quote text contents using JSON standard quoting, * and return results as a character array - * * Use this variant if you have e.g. a {@link StringBuilder} and want to avoid superfluous copying of it. + * + * @since 2.8 */ public char[] quoteCharSequenceAsString(CharSequence input) {