From d26adaaeac7c4d7663938fe7a5a91409a9d4617f Mon Sep 17 00:00:00 2001 From: Shai Erera Date: Thu, 20 Mar 2014 11:33:38 +0000 Subject: [PATCH] LUCENE-5476: use empty diamond git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1579596 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/facet/RandomSamplingFacetsCollector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/facet/src/java/org/apache/lucene/facet/RandomSamplingFacetsCollector.java b/lucene/facet/src/java/org/apache/lucene/facet/RandomSamplingFacetsCollector.java index 58c0696477c..152efe79929 100644 --- a/lucene/facet/src/java/org/apache/lucene/facet/RandomSamplingFacetsCollector.java +++ b/lucene/facet/src/java/org/apache/lucene/facet/RandomSamplingFacetsCollector.java @@ -153,7 +153,7 @@ public class RandomSamplingFacetsCollector extends FacetsCollector { /** Create a sampled copy of the matching documents list. */ private List createSampledDocs(List matchingDocsList) { - List sampledDocsList = new ArrayList(matchingDocsList.size()); + List sampledDocsList = new ArrayList<>(matchingDocsList.size()); for (MatchingDocs docs : matchingDocsList) { sampledDocsList.add(createSample(docs)); }