[ 
https://issues.apache.org/jira/browse/IMAGING-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16581147#comment-16581147
 ] 

ASF GitHub Bot commented on IMAGING-154:
----------------------------------------

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.


> Remove Debug class
> ------------------
>
>                 Key: IMAGING-154
>                 URL: https://issues.apache.org/jira/browse/IMAGING-154
>             Project: Commons Imaging
>          Issue Type: Task
>    Affects Versions: Patch Needed
>            Reporter: Benedikt Ritter
>            Assignee: Bruno P. Kinoshita
>            Priority: Major
>             Fix For: 1.0
>
>
> Low level libraries should not do logging, but communicate through the use of 
> exceptions and meaningful return values. Remove the Debug class and  all it's 
> uses.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to