Fixed Warnings (most of them are just suppression)
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user