From 0f73533199ef9322bf9401b65cfba324e9b740d4 Mon Sep 17 00:00:00 2001 From: zml2008 Date: Sun, 7 Aug 2011 01:08:40 -0700 Subject: [PATCH] Fixed some more warnings --- .../sk89q/bukkit/migration/NijiPermissionsResolver.java | 7 ++----- .../migration/PermissionsResolverServerListener.java | 2 -- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/sk89q/bukkit/migration/NijiPermissionsResolver.java b/src/main/java/com/sk89q/bukkit/migration/NijiPermissionsResolver.java index 99a0b1b17..dd53a35f0 100644 --- a/src/main/java/com/sk89q/bukkit/migration/NijiPermissionsResolver.java +++ b/src/main/java/com/sk89q/bukkit/migration/NijiPermissionsResolver.java @@ -19,7 +19,6 @@ package com.sk89q.bukkit.migration; -import com.sun.xml.internal.fastinfoset.algorithm.BooleanEncodingAlgorithm; import org.bukkit.Server; import org.bukkit.command.PluginCommand; import org.bukkit.entity.Player; @@ -53,7 +52,7 @@ public class NijiPermissionsResolver implements PermissionsResolver { throw new PluginAccessException(); } } - + @SuppressWarnings("static-access") public boolean hasPermission(String name, String permission) { try { @@ -137,8 +136,6 @@ public class NijiPermissionsResolver implements PermissionsResolver { PluginCommand permsCommand = plugin.getServer().getPluginCommand("permissions"); if (permsCommand == null) return false; - if (!permsCommand.getPlugin().getDescription().getName().equals("Permissions")) - return false; - return true; + return !permsCommand.getPlugin().getDescription().getName().equals("Permissions"); } } diff --git a/src/main/java/com/sk89q/bukkit/migration/PermissionsResolverServerListener.java b/src/main/java/com/sk89q/bukkit/migration/PermissionsResolverServerListener.java index 47b188d22..fdaf4dfd0 100644 --- a/src/main/java/com/sk89q/bukkit/migration/PermissionsResolverServerListener.java +++ b/src/main/java/com/sk89q/bukkit/migration/PermissionsResolverServerListener.java @@ -26,8 +26,6 @@ import org.bukkit.event.server.PluginEnableEvent; import org.bukkit.event.server.ServerListener; import org.bukkit.plugin.Plugin; -import java.util.Map; - public class PermissionsResolverServerListener extends ServerListener { private PermissionsResolverManager manager;