Checkstyle strikes again!

This commit is contained in:
Andrew Steinborn
2021-04-19 08:03:55 -04:00
parent 7c0b622742
commit 1bd691f91b

View File

@@ -249,8 +249,7 @@ public class VelocityServer implements ProxyServer, ForwardingAudience {
.create(Key.key("velocity", "translations")); .create(Key.key("velocity", "translations"));
translationRegistry.defaultLocale(Locale.US); translationRegistry.defaultLocale(Locale.US);
try { try {
FileSystemUtils.visitResources(VelocityServer.class, FileSystemUtils.visitResources(VelocityServer.class, path -> {
"com/velocitypowered/proxy/l10n", path -> {
logger.info("Loading localizations..."); logger.info("Loading localizations...");
try { try {
@@ -278,7 +277,7 @@ public class VelocityServer implements ProxyServer, ForwardingAudience {
} catch (IOException e) { } catch (IOException e) {
logger.error("Encountered an I/O error whilst loading translations", e); logger.error("Encountered an I/O error whilst loading translations", e);
} }
}); }, "com", "velocitypowered", "proxy", "l10n");
} catch (IOException e) { } catch (IOException e) {
logger.error("Encountered an I/O error whilst loading translations", e); logger.error("Encountered an I/O error whilst loading translations", e);
return; return;