diff options
author | Eduardo Pedroni <e.pedroni91@gmail.com> | 2016-03-25 22:51:03 +0100 |
---|---|---|
committer | Eduardo Pedroni <e.pedroni91@gmail.com> | 2016-03-25 22:51:03 +0100 |
commit | 5a9327b4721d50cee954369eaf25d096ac8b9c52 (patch) | |
tree | 9ddcceb564e14d9c2b8dbdf5544bbdb63c327234 /src/eu/equalparts/cardbase/comparator | |
parent | f66651cdd6cf6d7449428caae712eeeba8300194 (diff) |
Sorting out tests for new class hierarchy
Diffstat (limited to 'src/eu/equalparts/cardbase/comparator')
-rw-r--r-- | src/eu/equalparts/cardbase/comparator/CardComparator.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/eu/equalparts/cardbase/comparator/CardComparator.java b/src/eu/equalparts/cardbase/comparator/CardComparator.java index 7173109..c3ff736 100644 --- a/src/eu/equalparts/cardbase/comparator/CardComparator.java +++ b/src/eu/equalparts/cardbase/comparator/CardComparator.java @@ -7,7 +7,6 @@ import java.lang.reflect.Type; import java.util.Comparator; import java.util.function.BiFunction; -import eu.equalparts.cardbase.Cardbase; import eu.equalparts.cardbase.cards.Card; import eu.equalparts.cardbase.comparator.SpecialFields.DirtyNumber; import eu.equalparts.cardbase.comparator.SpecialFields.Rarity; @@ -93,10 +92,10 @@ public class CardComparator implements Comparator<Card> { } catch (IllegalArgumentException e) { System.out.println("Error: class Card does not define field \"" + fieldToCompare.getName() + "\"."); - if (Cardbase.DEBUG) e.printStackTrace(); + e.printStackTrace(); } catch (IllegalAccessException e) { System.out.println("Error: field " + fieldToCompare.getName() + " in Card is not visible."); - if (Cardbase.DEBUG) e.printStackTrace(); + e.printStackTrace(); } // fallback, this shouldn't happen |