Archived
0

Fixed Warnings (most of them are just suppression)

This commit is contained in:
Minenash
2019-01-03 18:03:29 -05:00
parent ff348a6e3f
commit 7a5323ca02
5 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,5 @@
package com.redstoner.modules.afk;
import com.redstoner.coremods.moduleLoader.ModuleLoader;
import com.redstoner.misc.Utils;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
@@ -43,6 +42,7 @@ public class AFKListener implements Listener {
}
@EventHandler
@SuppressWarnings("deprecation")
public void onChat(PlayerChatEvent event) {
if (chat) AFKUtil.checkedUnAfk(event.getPlayer());
}

View File

@@ -70,6 +70,7 @@ public class BlockPlaceMods implements Module, Listener {
mods.clear();
}
@SuppressWarnings("incomplete-switch")
@Command (async = Command.AsyncType.ALWAYS, hook = "list_mods")
public void listMods(CommandSender sender) {
Player player = (Player) sender;

View File

@@ -12,9 +12,7 @@ import org.bukkit.event.EventPriority;
import org.bukkit.event.block.BlockPlaceEvent;
import org.bukkit.material.RedstoneTorch;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class ModTorch extends BlockPlaceMod {

View File

@@ -15,6 +15,7 @@ import org.bukkit.event.player.PlayerMoveEvent;
import org.bukkit.event.player.PlayerPickupArrowEvent;
import org.bukkit.event.player.PlayerPickupItemEvent;
@SuppressWarnings("deprecation")
public class CancelledEventsHandler implements Listener {
private LoginSecurity mainClass;

View File

@@ -90,7 +90,7 @@ public class ItemProperties
return result;
}
@SuppressWarnings("unchecked")
@SuppressWarnings({ "unchecked", "deprecation" })
public JSONObject toJSONObject()
{
JSONObject object = new JSONObject();
@@ -128,7 +128,7 @@ public class ItemProperties
return toJSONObject().toString();
}
@SuppressWarnings("unchecked")
@SuppressWarnings({ "unchecked", "deprecation" })
public ItemProperties loadFrom(JSONObject object)
{
for (Object obj : object.entrySet())