forked from SteamWar/SteamWar
Format code
This commit is contained in:
@@ -36,8 +36,7 @@ public class SteamwarResourceBundle extends PropertyResourceBundle {
|
||||
private static synchronized ResourceBundle getResourceBundle(String locale, ResourceBundle parent) {
|
||||
return bundles.computeIfAbsent(locale, locale1 -> {
|
||||
InputStream inputStream = Message.class.getResourceAsStream(BASE_PATH + ("".equals(locale) ? "" : "_" + locale) + ".properties");
|
||||
if (inputStream == null)
|
||||
return parent;
|
||||
if (inputStream == null) return parent;
|
||||
try {
|
||||
return new SteamwarResourceBundle(inputStream, parent);
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user