fix some Java warnings

This commit is contained in:
jendave
2011-08-07 00:43:18 +00:00
parent 4892532ece
commit f1280a0766
5 changed files with 2 additions and 8 deletions

View File

@@ -84,7 +84,7 @@ public class Gui_NewGame extends JFrame implements NewConstants, NewConstants.LA
private JButton questButton = new JButton();
private Action LOOK_AND_FEEL_ACTION = new LookAndFeelAction(this);
private Action DOWNLOAD_ACTION = new DownloadAction();
// private Action DOWNLOAD_ACTION = new DownloadAction();
private Action DOWNLOAD_ACTION_LQ = new DownloadActionLQ();
private Action DOWNLOAD_ACTION_SETLQ = new DownloadActionSetLQ();
private Action IMPORT_PICTURE = new ImportPictureAction();

View File

@@ -1,6 +1,5 @@
package forge;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Observer;
import java.util.Stack;

View File

@@ -2,14 +2,12 @@ package forge.card.abilityFactory;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import forge.AllZone;
import forge.AllZoneUtil;
import forge.Card;
import forge.CardList;
import forge.CardListUtil;
import forge.Combat;
import forge.CombatUtil;
import forge.ComputerUtil;
import forge.Constant;
@@ -169,7 +167,7 @@ public class AbilityFactory_PreventDamage {
Target tgt = af.getAbTgt();
if (tgt == null){
// As far as I can tell these Defined Cards will only have one of them
ArrayList<Object> objects = AbilityFactory.getDefinedObjects(sa.getSourceCard(), af.getMapParams().get("Defined"), sa);
ArrayList<Object> objects = AbilityFactory.getDefinedObjects(sa.getSourceCard(), params.get("Defined"), sa);
if (AllZone.Stack.size() > 0){
// check stack for something that will kill this

View File

@@ -20,7 +20,6 @@ import forge.MyRandom;
import forge.PhaseUtil;
import forge.Player;
import forge.PlayerZone;
import forge.Phase;
import forge.card.spellability.Ability_Activated;
import forge.card.spellability.Ability_Sub;
import forge.card.spellability.Cost;

View File

@@ -22,13 +22,11 @@ import forge.CardUtil;
import forge.Command;
import forge.ComputerUtil;
import forge.Constant;
import forge.Counters;
import forge.HandSizeOp;
import forge.Player;
import forge.PlayerZone;
import forge.PlayerZone_ComesIntoPlay;
import forge.card.spellability.Ability;
import forge.card.spellability.Ability_Activated;
import forge.card.spellability.Cost;
import forge.card.spellability.Spell;
import forge.card.spellability.SpellAbility;