fix compile error
authorAndreas Müller <a.mueller@bgbm.org>
Thu, 6 May 2021 22:34:37 +0000 (00:34 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Thu, 6 May 2021 22:34:37 +0000 (00:34 +0200)
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/taxon/TaxonNodeDaoHibernateImpl.java

index 100e9c7006f6d7aee7f7f36847e946263c464811..23550f733afadd7da1e9823dd5aeac72c361bac5 100755 (executable)
@@ -755,8 +755,8 @@ public class TaxonNodeDaoHibernateImpl extends AnnotatableDaoImpl<TaxonNode>
         @SuppressWarnings("unchecked")\r
         List<List<Integer>> partitionList = splitIdList(query.list(), DEFAULT_SET_SUBTREE_PARTITION_SIZE);\r
         for (List<Integer> taxonIdList : partitionList){\r
-            @SuppressWarnings("unchecked")\r
-            List<T> taxonList = (List<T>)taxonDao.loadList(taxonIdList, null, null);\r
+            @SuppressWarnings({ "unchecked", "rawtypes" })\r
+            List<T> taxonList = (List)taxonDao.loadList(taxonIdList, null, null);\r
             for (T taxonBase : taxonList){\r
                 if (taxonBase != null){\r
                     taxonBase = CdmBase.deproxy(taxonBase);\r