code polish
This commit is contained in:
parent
4e009340fa
commit
e17ff9082e
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user