From e17ff9082e6ece0da7eaf689d0294107b756be86 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 26 Dec 2016 23:32:11 +0100 Subject: [PATCH] code polish --- src/dorkbox/systemTray/util/ImageUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dorkbox/systemTray/util/ImageUtils.java b/src/dorkbox/systemTray/util/ImageUtils.java index 961dd51..d1606dd 100644 --- a/src/dorkbox/systemTray/util/ImageUtils.java +++ b/src/dorkbox/systemTray/util/ImageUtils.java @@ -528,7 +528,7 @@ class ImageUtils { private static File resizeFileNoCheck(final int size, final URL imageUrl) throws IOException { String extension = FileUtil.getExtension(imageUrl.getPath()); - if (extension.equals("")) { + if (extension.isEmpty()) { extension = "png"; // made up } @@ -620,7 +620,7 @@ class ImageUtils { // have to resize the file (and return the new path) String extension = FileUtil.getExtension(fileName); - if (extension.equals("")) { + if (extension.isEmpty()) { extension = "png"; // made up }