mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-10-06 12:40:22 -04:00
Changes suggested by Intellij in the category "Performance".
Updated.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user