Project

General

Profile

Revision 6f943bcd

ID6f943bcd9d271d257411afb53473d0a208efc3ed
Parent 7b9ab0e4
Child 74ad1146

Added by Andreas Kohlbecker almost 3 years ago

null save sorting of type desgnation status types

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/util/converter/TypeDesignationSetManager.java
251 251
                @Override
252 252
                public int compare(TypeDesignationStatusBase o1, TypeDesignationStatusBase o2) {
253 253
                    // fix inverted order of cdm terms by -1*
254
                    if(o1 == null && o2 == null || o1 instanceof NullTypeDesignationStatus && o2 instanceof NullTypeDesignationStatus){
255
                        return 0;
256
                    }
257
                    if(o1 == null || o1 instanceof NullTypeDesignationStatus){
258
                        return -1;
259
                    }
260

  
261
                    if(o2 == null || o2 instanceof NullTypeDesignationStatus){
262
                        return 1;
263
                    }
254 264
                    return -1 * o1.compareTo(o2);
255 265
                }
256 266
            });

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)