code polish

This commit is contained in:
nathan 2016-12-26 23:32:11 +01:00
parent 4e009340fa
commit e17ff9082e

View File

@ -528,7 +528,7 @@ class ImageUtils {
private static private static
File resizeFileNoCheck(final int size, final URL imageUrl) throws IOException { File resizeFileNoCheck(final int size, final URL imageUrl) throws IOException {
String extension = FileUtil.getExtension(imageUrl.getPath()); String extension = FileUtil.getExtension(imageUrl.getPath());
if (extension.equals("")) { if (extension.isEmpty()) {
extension = "png"; // made up extension = "png"; // made up
} }
@ -620,7 +620,7 @@ class ImageUtils {
// have to resize the file (and return the new path) // have to resize the file (and return the new path)
String extension = FileUtil.getExtension(fileName); String extension = FileUtil.getExtension(fileName);
if (extension.equals("")) { if (extension.isEmpty()) {
extension = "png"; // made up extension = "png"; // made up
} }