diff --git a/lucene/facet/src/java/org/apache/lucene/facet/search/FacetResult.java b/lucene/facet/src/java/org/apache/lucene/facet/search/FacetResult.java index ae7c1d1c875..d21fbf63486 100644 --- a/lucene/facet/src/java/org/apache/lucene/facet/search/FacetResult.java +++ b/lucene/facet/src/java/org/apache/lucene/facet/search/FacetResult.java @@ -72,18 +72,18 @@ public class FacetResult { */ public static List mergeHierarchies(List results, TaxonomyReader taxoReader, Map dimArrays) throws IOException { - final Map> dims = new HashMap<>(); + final Map> dims = new HashMap>(); for (FacetResult fr : results) { String dim = fr.getFacetRequest().categoryPath.components[0]; List frs = dims.get(dim); if (frs == null) { - frs = new ArrayList<>(); + frs = new ArrayList(); dims.put(dim, frs); } frs.add(fr); } - final List res = new ArrayList<>(); + final List res = new ArrayList(); for (List frs : dims.values()) { FacetResult mergedResult = frs.get(0); if (frs.size() > 1) { @@ -93,7 +93,7 @@ public class FacetResult { return fr1.getFacetRequest().categoryPath.compareTo(fr2.getFacetRequest().categoryPath); } }); - Map mergedNodes = new HashMap<>(); + Map mergedNodes = new HashMap(); FacetArrays arrays = dimArrays != null ? dimArrays.get(frs.get(0).getFacetRequest().categoryPath.components[0]) : null; for (FacetResult fr : frs) { FacetResultNode frn = fr.getFacetResultNode(); @@ -107,7 +107,7 @@ public class FacetResult { double parentValue = arrays != null ? fr.getFacetRequest().getValueOf(arrays, parentOrd) : -1; parentNode = new FacetResultNode(parentOrd, parentValue); parentNode.label = parent; - parentNode.subResults = new ArrayList<>(); + parentNode.subResults = new ArrayList(); parentNode.subResults.add(childNode); mergedNodes.put(parent, parentNode); childNode = parentNode; @@ -118,7 +118,7 @@ public class FacetResult { // parent with the child if (parent.length > 0) { if (!(parentNode.subResults instanceof ArrayList)) { - parentNode.subResults = new ArrayList<>(parentNode.subResults); + parentNode.subResults = new ArrayList(parentNode.subResults); } parentNode.subResults.add(childNode); } @@ -132,7 +132,7 @@ public class FacetResult { } } else { if (!(merged.subResults instanceof ArrayList)) { - merged.subResults = new ArrayList<>(merged.subResults); + merged.subResults = new ArrayList(merged.subResults); } for (FacetResultNode sub : frn.subResults) { // make sure sub wasn't already added