Github user kinow commented on a diff in the pull request:

    https://github.com/apache/commons-imaging/pull/35#discussion_r210519489
  
    --- Diff: 
src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkText.java 
---
    @@ -42,9 +47,9 @@ public PngChunkText(final int length, final int 
chunkType, final int crc, final
             final int textLength = bytes.length - (index + 1);
             text = new String(bytes, index + 1, textLength, 
StandardCharsets.ISO_8859_1);
     
    -        if (getDebug()) {
    -            System.out.println("Keyword: " + keyword);
    -            System.out.println("Text: " + text);
    +        if (LOGGER.isLoggable(Level.FINE)) {
    --- End diff --
    
    I went straight for `LOGGER.isDebugEnabled()` and the IDE remembered me 
what it actually looked like :=/


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to