Project

General

Profile

Revision 4ce7e0da

ID4ce7e0da8f01612bb2f038a44f139dad5e5cea9e
Parent ff77d172
Child 69f6fe4f

Added by Patrick Plitzner over 1 year ago

ref #6526 Fix generics of comparator

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/name/TypeDesignationStatusComparator.java
18 18
 * @since May 3, 2018
19 19
 *
20 20
 */
21
public class TypeDesignationStatusComparator implements Comparator<TypeDesignationStatusBase> {
22
    @SuppressWarnings("unchecked")
21
public class TypeDesignationStatusComparator <T extends TypeDesignationStatusBase<T>>  implements Comparator<T> {
23 22
    @Override
24
    public int compare(TypeDesignationStatusBase o1, TypeDesignationStatusBase o2) {
23
    public int compare(T o1, T o2) {
25 24
        // fix inverted order of cdm terms by -1*
26 25
        if(o1 == null && o2 == null || o1 instanceof NullTypeDesignationStatus && o2 instanceof NullTypeDesignationStatus){
27 26
            return 0;

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)