Changes suggested by Intellij in the category "Performance".

Updated.
This commit is contained in:
Koen De Groote
2019-10-22 01:58:08 +02:00
parent 42e17f2063
commit 8ed5f06151
5 changed files with 11 additions and 9 deletions

View File

@@ -922,7 +922,7 @@ public final class FileUtil {
// A URL should never be able to represent an opaque URI, test anyway
throw new IllegalArgumentException("URI is not hierarchical");
}
if (path.equals("")) {
if (path.isEmpty()) {
throw new IllegalArgumentException("URI path component is empty");
}