Project

General

Profile

Revision 03e6ed71

ID03e6ed71a972fcb9c9831cf4e45c8dc0cfd02b1c
Parent 565ed3cc
Child 79d8b2c8

Added by Andreas Müller about 7 years ago

remove generics

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/utility/DescriptionUtility.java
229 229
    private static Set<Distribution> byHighestOrderPresenceAbsenceTerm(Set<Distribution> distributions){
230 230

  
231 231
        Set<Distribution> preferred = new HashSet<Distribution>();
232
        PresenceAbsenceTermBase<?> highestStatus = null;
232
        PresenceAbsenceTermBase highestStatus = null;  //we need to leave generics here as for some reason highestStatus.compareTo later jumps into the wrong class for calling compareTo
233 233
        int compareResult;
234 234
        for (Distribution distribution : distributions) {
235 235
            if(highestStatus == null){

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)