3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-09-29 14:40:21 +02:00

Fix SpotBugs stuff

Dieser Commit ist enthalten in:
Andrew Steinborn 2021-04-17 09:05:23 -04:00
Ursprung 3209103317
Commit 6c369c7d09
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -276,12 +276,10 @@ 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);
System.exit(1);
} }
}); });
} 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);
System.exit(1);
return; return;
} }
GlobalTranslator.get().addSource(translationRegistry); GlobalTranslator.get().addSource(translationRegistry);

Datei anzeigen

@ -17,6 +17,7 @@
package com.velocitypowered.proxy.util; package com.velocitypowered.proxy.util;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.net.URI; import java.net.URI;
@ -40,6 +41,7 @@ public class FileSystemUtils {
* @param path The path to scan within the resource path * @param path The path to scan within the resource path
* @param consumer The consumer to visit the resolved 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) public static boolean visitResources(Class<?> target, Path path, Consumer<Path> consumer)
throws IOException { throws IOException {
final File file = new File(target final File file = new File(target