Checkstyle.

This commit is contained in:
Doublestrike
2012-05-27 01:34:54 +00:00
parent 7747c590f9
commit d4699f3f0f
2 changed files with 15 additions and 19 deletions

View File

@@ -33,10 +33,7 @@ import forge.quest.QuestUtilCards;
import forge.quest.bazaar.QuestItemType; import forge.quest.bazaar.QuestItemType;
import forge.quest.data.QuestPreferences.QPref; import forge.quest.data.QuestPreferences.QPref;
/** /** */
* TODO: Write javadoc for this type.
*
*/
public class QuestAssets { public class QuestAssets {
// Cards associated with quest // Cards associated with quest
@@ -125,8 +122,6 @@ public class QuestAssets {
try { // care to set appropriate state class here try { // care to set appropriate state class here
cond = itemType.getModelClass().newInstance(); cond = itemType.getModelClass().newInstance();
} catch (final Exception e) { } catch (final Exception e) {
// TODO Auto-generated catch block ignores the exception, but
// sends it to System.err and probably forge.log.
e.printStackTrace(); e.printStackTrace();
cond = new QuestItemCondition(); cond = new QuestItemCondition();
} }
@@ -136,8 +131,6 @@ public class QuestAssets {
} }
/** /**
*
* TODO: Write javadoc for this method.
* @param name String * @param name String
* @return int * @return int
*/ */
@@ -147,8 +140,6 @@ public class QuestAssets {
} }
/** /**
*
* TODO: Write javadoc for this method.
* @param name   String * @param name   String
* @param <T> extends QuestItemCondition * @param <T> extends QuestItemCondition
* @return <T> * @return <T>
@@ -159,8 +150,6 @@ public class QuestAssets {
} }
/** /**
*
* TODO: Write javadoc for this method.
* @param name String * @param name String
* @param level int * @param level int
*/ */
@@ -265,8 +254,6 @@ public class QuestAssets {
} }
/** /**
* TODO: Write javadoc for this method.
*
* @return the deck storage * @return the deck storage
*/ */
public QuestDeckMap getDeckStorage() { public QuestDeckMap getDeckStorage() {

View File

@@ -6,22 +6,31 @@ package forge.quest.data;
*/ */
public class QuestItemCondition { public class QuestItemCondition {
private int level; private int level;
private boolean selected = false;
/** /** @return int */
* TODO: Write javadoc for this method.
* @return
*/
public int getLevel() { public int getLevel() {
return level; return level;
} }
/** @param level int */
public void setLevel(int level) { public void setLevel(int level) {
this.level = level; this.level = level;
} }
/** @return boolean */
public boolean isSelected() {
return selected;
}
/** @param selected0 &emsp; boolean */
public void setSelected(boolean selected0) {
this.selected = selected0;
}
/** /**
* Copy data from the parameter instance to 'this' instance. * Copy data from the parameter instance to 'this' instance.
* @param current * @param source QuestItemCondition
*/ */
public void takeDataFrom(QuestItemCondition source) { public void takeDataFrom(QuestItemCondition source) {
this.level = source.level; this.level = source.level;