mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-20 07:57:42 +01:00
Fix SpotBugs stuff
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user