summaryrefslogtreecommitdiff
path: root/core/src/test/java/org/elasticsearch/search/aggregations/bucket/MinDocCountIT.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/test/java/org/elasticsearch/search/aggregations/bucket/MinDocCountIT.java')
-rw-r--r--core/src/test/java/org/elasticsearch/search/aggregations/bucket/MinDocCountIT.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/test/java/org/elasticsearch/search/aggregations/bucket/MinDocCountIT.java b/core/src/test/java/org/elasticsearch/search/aggregations/bucket/MinDocCountIT.java
index 7307b756e3..e1e8f1ba66 100644
--- a/core/src/test/java/org/elasticsearch/search/aggregations/bucket/MinDocCountIT.java
+++ b/core/src/test/java/org/elasticsearch/search/aggregations/bucket/MinDocCountIT.java
@@ -161,8 +161,8 @@ public class MinDocCountIT extends AbstractTermsTestCase {
// check that terms2 is a subset of terms1
private void assertSubset(Terms terms1, Terms terms2, long minDocCount, int size, String include) {
final Matcher matcher = include == null ? null : Pattern.compile(include).matcher("");;
- final Iterator<Terms.Bucket> it1 = terms1.getBuckets().iterator();
- final Iterator<Terms.Bucket> it2 = terms2.getBuckets().iterator();
+ final Iterator<? extends Terms.Bucket> it1 = terms1.getBuckets().iterator();
+ final Iterator<? extends Terms.Bucket> it2 = terms2.getBuckets().iterator();
int size2 = 0;
while (it1.hasNext()) {
final Terms.Bucket bucket1 = it1.next();