mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
refactor: Use #isEmpty() in favor of #size() > 0
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -183,7 +183,7 @@ public abstract class SavedPositionCommand<T extends SavedPosition> extends Comm
|
||||
|
||||
@NotNull
|
||||
private static String formatUsage(List<String> arguments) {
|
||||
return ((arguments.size() > 0) ? " [" + String.join("|", arguments) + "]" : "");
|
||||
return ((!arguments.isEmpty()) ? " [" + String.join("|", arguments) + "]" : "");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user