Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Fix SpotBugs stuff
Dieser Commit ist enthalten in:
Ursprung
3209103317
Commit
6c369c7d09
@ -276,12 +276,10 @@ public class VelocityServer implements ProxyServer, ForwardingAudience {
|
||||
});
|
||||
} catch (IOException e) {
|
||||
logger.error("Encountered an I/O error whilst loading translations", e);
|
||||
System.exit(1);
|
||||
}
|
||||
});
|
||||
} catch (IOException e) {
|
||||
logger.error("Encountered an I/O error whilst loading translations", e);
|
||||
System.exit(1);
|
||||
return;
|
||||
}
|
||||
GlobalTranslator.get().addSource(translationRegistry);
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
package com.velocitypowered.proxy.util;
|
||||
|
||||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.URI;
|
||||
@ -40,6 +41,7 @@ public class FileSystemUtils {
|
||||
* @param path The path to scan within the resource path
|
||||
* @param consumer The consumer to visit the resolved path
|
||||
*/
|
||||
@SuppressFBWarnings({"RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"})
|
||||
public static boolean visitResources(Class<?> target, Path path, Consumer<Path> consumer)
|
||||
throws IOException {
|
||||
final File file = new File(target
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren