Skip to content

Commit

Permalink
Update KiotaSerialization.java
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet authored Oct 31, 2023
1 parent 7de72b1 commit 0e760db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static <T extends Parsable> InputStream serializeAsStream(@Nonnull final
@Nonnull
public static <T extends Parsable> String serializeAsString(@Nonnull final String contentType, @Nonnull final Iterable<T> values) throws IOException {
try(final InputStream stream = serializeAsStream(contentType, values)) {
return new String(stream.readAllBytes(), CHARSET_NAME);
return new String(Compatibility.readAllBytes(stream), CHARSET_NAME);
}
}
private static SerializationWriter getSerializationWriter(@Nonnull final String contentType, @Nonnull final Object value) {
Expand Down

0 comments on commit 0e760db

Please sign in to comment.