Update code style

This commit is contained in:
nossr50
2019-04-24 22:52:53 -07:00
parent dc758a6dfc
commit 02a69cbb05
334 changed files with 4660 additions and 5158 deletions

View File

@@ -13,7 +13,8 @@ public final class LocaleLoader {
private static ResourceBundle bundle = null;
private static ResourceBundle enBundle = null;
private LocaleLoader() {}
private LocaleLoader() {
}
public static String getString(String key) {
return getString(key, (Object[]) null);
@@ -22,7 +23,7 @@ public final class LocaleLoader {
/**
* Gets the appropriate string from the Locale files.
*
* @param key The key to look up the string with
* @param key The key to look up the string with
* @param messageArguments Any arguments to be added to the string
* @return The properly formatted locale string
*/
@@ -33,12 +34,10 @@ public final class LocaleLoader {
try {
return getString(key, bundle, messageArguments);
}
catch (MissingResourceException ex) {
} catch (MissingResourceException ex) {
try {
return getString(key, enBundle, messageArguments);
}
catch (MissingResourceException ex2) {
} catch (MissingResourceException ex2) {
if (!key.contains("Guides")) {
mcMMO.p.getLogger().warning("Could not find locale string: " + key);
}
@@ -79,8 +78,7 @@ public final class LocaleLoader {
if (myLocale.length == 1) {
locale = new Locale(myLocale[0]);
}
else if (myLocale.length >= 2) {
} else if (myLocale.length >= 2) {
locale = new Locale(myLocale[0], myLocale[1]);
}