Add @SuppressWarnings("unused") to hooks.
This commit is contained in:
1 parent
9b721bfd45
commit
7ffcbdbb06
11 files changed
+11
-4
No files matched your search
+1
-1
@@ -16,7 +16,7 @@ import zombie.characters.IsoPlayer;
|
|||||||
* thread (client commands are queued for the main loop). Exceptions are caught here; the command
|
* thread (client commands are queued for the main loop). Exceptions are caught here; the command
|
||||||
* then reaches Lua as in vanilla.
|
* then reaches Lua as in vanilla.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("CallToPrintStackTrace")
|
@SuppressWarnings({"unused", "CallToPrintStackTrace"})
|
||||||
public final class ClientCommandHooks
|
public final class ClientCommandHooks
|
||||||
{
|
{
|
||||||
private ClientCommandHooks() {}
|
private ClientCommandHooks() {}
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ import java.util.List;
|
|||||||
* server console, RCON, and chat commands all run there. Exceptions are caught here, and the
|
* server console, RCON, and chat commands all run there. Exceptions are caught here, and the
|
||||||
* vanilla value is returned.
|
* vanilla value is returned.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("CallToPrintStackTrace")
|
@SuppressWarnings({"unused", "CallToPrintStackTrace"})
|
||||||
public final class CommandHooks
|
public final class CommandHooks
|
||||||
{
|
{
|
||||||
private CommandHooks() {}
|
private CommandHooks() {}
|
||||||
|
|||||||
+1
@@ -19,6 +19,7 @@ import zombie.network.ServerWorldDatabase;
|
|||||||
* statements write the same rows. The hooks never fail the save: when the connection cannot be
|
* statements write the same rows. The hooks never fail the save: when the connection cannot be
|
||||||
* reached or switched, the save runs in autocommit mode as in vanilla.
|
* reached or switched, the save runs in autocommit mode as in vanilla.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public final class RolesHooks
|
public final class RolesHooks
|
||||||
{
|
{
|
||||||
/** {@code ServerWorldDatabase.conn}, package-private; {@code null} when it cannot be reached. */
|
/** {@code ServerWorldDatabase.conn}, package-private; {@code null} when it cannot be reached. */
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ import java.nio.file.Path;
|
|||||||
* {@code GameServer$1}. Exceptions are caught here: the main loop logs repeated exceptions only
|
* {@code GameServer$1}. Exceptions are caught here: the main loop logs repeated exceptions only
|
||||||
* a limited number of times, and an exception in the shutdown hook would skip the world save.
|
* a limited number of times, and an exception in the shutdown hook would skip the world save.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("CallToPrintStackTrace")
|
@SuppressWarnings({"unused", "CallToPrintStackTrace"})
|
||||||
public final class ServerHooks
|
public final class ServerHooks
|
||||||
{
|
{
|
||||||
private ServerHooks() {}
|
private ServerHooks() {}
|
||||||
|
|||||||
+1
@@ -6,6 +6,7 @@ import zombie.network.ServerLOS;
|
|||||||
import zombie.network.ServerMap;
|
import zombie.network.ServerMap;
|
||||||
|
|
||||||
/** Hooks called by patched {@code zombie.network.ServerMap} code. */
|
/** Hooks called by patched {@code zombie.network.ServerMap} code. */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public final class ServerMapHooks
|
public final class ServerMapHooks
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ package dev.overlord.zomboidforge.compat.b42.hooks;
|
|||||||
import dev.overlord.zomboidforge.compat.b42.ForgeInstance;
|
import dev.overlord.zomboidforge.compat.b42.ForgeInstance;
|
||||||
|
|
||||||
/** Hooks called by patched {@code zombie.core.backup.ZipBackup} code. */
|
/** Hooks called by patched {@code zombie.core.backup.ZipBackup} code. */
|
||||||
@SuppressWarnings("CallToPrintStackTrace")
|
@SuppressWarnings({"unused", "CallToPrintStackTrace"})
|
||||||
public final class StorageHooks
|
public final class StorageHooks
|
||||||
{
|
{
|
||||||
private StorageHooks() {}
|
private StorageHooks() {}
|
||||||
|
|||||||
+1
@@ -10,6 +10,7 @@ import dev.overlord.zomboidforge.compat.b42.util.WakeableSleep;
|
|||||||
* {@code ServerPlayersVehicles} thread. The loops check the same conditions as in vanilla; the
|
* {@code ServerPlayersVehicles} thread. The loops check the same conditions as in vanilla; the
|
||||||
* hooks only let them notice sooner that the condition holds.
|
* hooks only let them notice sooner that the condition holds.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public final class WaitHooks
|
public final class WaitHooks
|
||||||
{
|
{
|
||||||
/** Longest sleep of a polling loop. */
|
/** Longest sleep of a polling loop. */
|
||||||
|
|||||||
+1
@@ -9,6 +9,7 @@ import java.util.List;
|
|||||||
* {@code zombie.iso.worldgen.WorldGenChunk} code. Each returns what the vanilla code returns
|
* {@code zombie.iso.worldgen.WorldGenChunk} code. Each returns what the vanilla code returns
|
||||||
* ({@link TileRules}).
|
* ({@link TileRules}).
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public final class WorldGenHooks
|
public final class WorldGenHooks
|
||||||
{
|
{
|
||||||
private WorldGenHooks() {}
|
private WorldGenHooks() {}
|
||||||
|
|||||||
+1
@@ -11,6 +11,7 @@ import zombie.scripting.objects.VehicleScript;
|
|||||||
import zombie.vehicles.BaseVehicle;
|
import zombie.vehicles.BaseVehicle;
|
||||||
|
|
||||||
/** Hooks called by patched {@code zombie.characters.IsoZombie} code. */
|
/** Hooks called by patched {@code zombie.characters.IsoZombie} code. */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public final class ZombieVehicleHooks
|
public final class ZombieVehicleHooks
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|||||||
+1
@@ -9,6 +9,7 @@ import zombie.iso.worldgen.zombie.ClosestSelection;
|
|||||||
import zombie.iso.worldgen.zombie.Coord;
|
import zombie.iso.worldgen.zombie.Coord;
|
||||||
|
|
||||||
/** Hooks called by patched {@code zombie.iso.worldgen.zombie.ZombieVoronoi} code. */
|
/** Hooks called by patched {@code zombie.iso.worldgen.zombie.ZombieVoronoi} code. */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public final class ZombieVoronoiHooks
|
public final class ZombieVoronoiHooks
|
||||||
{
|
{
|
||||||
private ZombieVoronoiHooks() {}
|
private ZombieVoronoiHooks() {}
|
||||||
|
|||||||
+1
@@ -13,6 +13,7 @@ import zombie.ZomboidFileSystem;
|
|||||||
import zombie.network.GameServer;
|
import zombie.network.GameServer;
|
||||||
|
|
||||||
/** Hooks called by patched {@code zombie.ZomboidFileSystem} code. */
|
/** Hooks called by patched {@code zombie.ZomboidFileSystem} code. */
|
||||||
|
@SuppressWarnings("unused")
|
||||||
public final class ZomboidFileSystemHooks
|
public final class ZomboidFileSystemHooks
|
||||||
{
|
{
|
||||||
private ZomboidFileSystemHooks() {}
|
private ZomboidFileSystemHooks() {}
|
||||||
|
|||||||
Reference in new issue
Block a user