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
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
}