From 4af370fcd57744b3b1710f39c1cae5875ee54f11 Mon Sep 17 00:00:00 2001 From: Chris Kroells Date: Sat, 24 Sep 2022 10:50:04 +0900 Subject: [PATCH] Add TODO to remind updating exception handling to include cause. --- .../coobird/thumbnailator/tasks/io/OutputStreamImageSink.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/coobird/thumbnailator/tasks/io/OutputStreamImageSink.java b/src/main/java/net/coobird/thumbnailator/tasks/io/OutputStreamImageSink.java index 6fc120a2..8dc16ae0 100644 --- a/src/main/java/net/coobird/thumbnailator/tasks/io/OutputStreamImageSink.java +++ b/src/main/java/net/coobird/thumbnailator/tasks/io/OutputStreamImageSink.java @@ -171,6 +171,8 @@ public void write(BufferedImage img) throws IOException { * The "cause" parameter has been introduced in Java 6: * http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html#IOException%28java.lang.String,%20java.lang.Throwable%29 * + * TODO Include `cause` in exception when moving codebase to Java 6+ + * * TODO Whether to surround this portion of code in a try-catch * is debatable, as it wouldn't really add more utility. *