ref #9252 adapting Taxeditor to modified DTOs - 2
authorAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Mon, 19 Oct 2020 17:49:58 +0000 (19:49 +0200)
committerAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Mon, 19 Oct 2020 17:50:09 +0000 (19:50 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/search/facet/occurrence/OccurrenceSearchResult.java

index 0d6705e7fe962675a6f5906f46ae4d97ec8ec18b..307b4763a54e930609f4c5b45236fc216de103e0 100644 (file)
@@ -8,8 +8,6 @@
 */
 package eu.etaxonomy.taxeditor.view.search.facet.occurrence;
 
-import static org.springframework.test.web.client.match.MockRestRequestMatchers.content;
-
 import java.util.Set;
 import java.util.stream.Collectors;
 
@@ -30,7 +28,7 @@ public class OccurrenceSearchResult extends SearchResult<DerivedUnitDTO> {
 
     @Override
     protected Set<Facet> initFacets(DerivedUnitDTO content) {
-        Set<Facet> facets =  content.getAssociatedTaxa().map(ref -> new Facet(ref.geLabel(), content.getKindOfUnit())).collect(Collectors.toSet());
+        Set<Facet> facets =  content.getAssociatedTaxa().stream().map(ref -> new Facet(ref.geLabel(), content.getKindOfUnit())).collect(Collectors.toSet());
         return facets;
     }