From 5a9327b4721d50cee954369eaf25d096ac8b9c52 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Fri, 25 Mar 2016 22:51:03 +0100 Subject: Sorting out tests for new class hierarchy --- src/eu/equalparts/cardbase/comparator/CardComparator.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/eu/equalparts/cardbase/comparator') 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 { } 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 -- cgit v1.2.3