fix: resolve all 375 checkstyle violations
This commit is contained in:
parent
bfeecb0866
commit
1d57972038
45 changed files with 286 additions and 107 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue