You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2014/12/16 15:57:58 UTC
svn commit: r1645962 -
/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/Accountables.java
Author: jpountz
Date: Tue Dec 16 14:57:58 2014
New Revision: 1645962
URL: http://svn.apache.org/r1645962
Log:
Fix compiler warning.
Modified:
lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/Accountables.java
Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/Accountables.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/Accountables.java?rev=1645962&r1=1645961&r2=1645962&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/Accountables.java (original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/Accountables.java Tue Dec 16 14:57:58 2014
@@ -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() {
@Override
public long ramBytesUsed() {
@@ -129,7 +129,7 @@ public class Accountables {
@Override
public Iterable<Accountable> getChildResources() {
- return (Iterable<Accountable>) children;
+ return children;
}
@Override