Apache Lucene open-source search software
Fix compiler warning.
Adrien Grand1a5b889c8602
diff --git a/lucene/core/src/java/org/apache/lucene/util/Accountables.java b/lucene/core/src/java/org/apache/lucene/util/Accountables.javaindex d69b8bc9473..bd824bac063 100644--- a/lucene/core/src/java/org/apache/lucene/util/Accountables.java+++ b/lucene/core/src/java/org/apache/lucene/util/Accountables.java@@ -120,7 +120,7 @@ public class Accountables {* This is a point-in-time type safe view: consumers* will not be able to cast or manipulate the resources in any way..*/- private static Accountable namedAccountable(final String description, final Iterable<? extends Accountable> children, final long bytes) {+ private static Accountable namedAccountable(final String description, final Iterable<Accountable> children, final long bytes) {return new Accountable() {@Overridepublic long ramBytesUsed() {@@ -129,7 +129,7 @@ public class Accountables {@Overridepublic Iterable<Accountable> getChildResources() {- return (Iterable<Accountable>) children;+ return children;}@Override