Github user garydgregory commented on a diff in the pull request: https://github.com/apache/commons-imaging/pull/35#discussion_r210287176 --- Diff: src/main/java/org/apache/commons/imaging/formats/psd/PsdImageContents.java --- @@ -40,9 +45,14 @@ public PsdImageContents(final PsdHeaderInfo header, } public void dump() { - final PrintWriter pw = new PrintWriter(new OutputStreamWriter(System.out, Charset.defaultCharset())); - dump(pw); - pw.flush(); + try (StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw)) { --- End diff -- Same comment as above.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org