fix: resolve all 375 checkstyle violations

This commit is contained in:
loki5512344 2026-07-12 12:08:02 +02:00
parent bfeecb0866
commit 1d57972038
Signed by: boba
GPG key ID: 253067914055423B
45 changed files with 286 additions and 107 deletions

View file

@ -25,6 +25,9 @@ import java.util.stream.Stream;
*/
public class LocaleLoader {
private LocaleLoader() {
}
/**
* Load all locale files from the locales/ folder.
* Returns a map of locale name → FileConfiguration.
@ -68,7 +71,9 @@ public class LocaleLoader {
}
private static void ensureFolder(@NotNull File folder) {
if (!folder.exists()) folder.mkdirs();
if (!folder.exists()) {
folder.mkdirs();
}
String[] files = folder.list();
if (files == null || files.length == 0) {
Plugin plugin = LoParkour.getPlugin();