remove generics
authorAndreas Müller <a.mueller@bgbm.org>
Thu, 11 Sep 2014 11:52:56 +0000 (11:52 +0000)
committerAndreas Müller <a.mueller@bgbm.org>
Thu, 11 Sep 2014 11:52:56 +0000 (11:52 +0000)
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/utility/DescriptionUtility.java

index 37925711777b675048ec3d3214861c4db7838cc2..196fb411230e5af484de073fe9cc2ed470977278 100644 (file)
@@ -229,7 +229,7 @@ public class DescriptionUtility {
     private static Set<Distribution> byHighestOrderPresenceAbsenceTerm(Set<Distribution> distributions){
 
         Set<Distribution> preferred = new HashSet<Distribution>();
-        PresenceAbsenceTermBase<?> highestStatus = null;
+        PresenceAbsenceTermBase highestStatus = null;  //we need to leave generics here as for some reason highestStatus.compareTo later jumps into the wrong class for calling compareTo
         int compareResult;
         for (Distribution distribution : distributions) {
             if(highestStatus == null){