diff --git a/common/source/java/ch/systemsx/cisd/common/utilities/FieldComparator.java b/common/source/java/ch/systemsx/cisd/common/utilities/FieldComparator.java index 507d589baaa09c4bafcdc2749769eeaf9be4ddf8..3319c158198b801fc0cc3e99d4c72ce73065de36 100644 --- a/common/source/java/ch/systemsx/cisd/common/utilities/FieldComparator.java +++ b/common/source/java/ch/systemsx/cisd/common/utilities/FieldComparator.java @@ -31,8 +31,11 @@ import ch.systemsx.cisd.common.exceptions.CheckedExceptionTunnel; * No that this field MUST implement the {@link Comparable} interface. * </p> * + * @deprecated Avoid using this class. It requires to specify class field name, which reduces + * benefits of strong typing. * @author Christian Ribeaud */ +@Deprecated public class FieldComparator<T> implements Comparator<T> { diff --git a/common/sourceTest/java/ch/systemsx/cisd/common/utilities/FieldComparatorTest.java b/common/sourceTest/java/ch/systemsx/cisd/common/utilities/FieldComparatorTest.java index a61d2c0bd0996418aac954a20927aab318b37f0a..d1cecb949f2dc9e7ea43d93a9a6cc6a50a958621 100644 --- a/common/sourceTest/java/ch/systemsx/cisd/common/utilities/FieldComparatorTest.java +++ b/common/sourceTest/java/ch/systemsx/cisd/common/utilities/FieldComparatorTest.java @@ -32,6 +32,7 @@ import org.testng.annotations.Test; * * @author Christian Ribeaud */ +@Deprecated public final class FieldComparatorTest {