Project

General

Profile

« Previous | Next » 

Revision 03e6ed71

Added by Andreas Müller over 9 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