Fix issues pointed out by the FindBugs plugin

This commit is contained in:
TfT_02
2014-01-19 11:49:30 +01:00
parent 79155887b0
commit a1c1271d21
8 changed files with 35 additions and 26 deletions

View File

@ -87,8 +87,9 @@ public class CleanBackupsTask extends BukkitRunnable {
mcMMO.p.getLogger().info("Cleaned backup files. Deleted " + amountDeleted + " of " + amountTotal + " files.");
for (File file : toDelete) {
mcMMO.p.debug("Deleted: " + file.getName());
file.delete();
if (file.delete()) {
mcMMO.p.debug("Deleted: " + file.getName());
}
}
}

View File

@ -18,8 +18,8 @@ import com.gmail.nossr50.util.Permissions;
import com.gmail.nossr50.util.player.UserManager;
public class AlchemyBrewTask extends BukkitRunnable {
private final double DEFAULT_BREW_SPEED = 1.0;
private final int DEFAULT_BREW_TICKS = 400;
private static double DEFAULT_BREW_SPEED = 1.0;
private static int DEFAULT_BREW_TICKS = 400;
private Block brewingStand;
private double brewSpeed;