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 16:00:20 UTC

svn commit: r1645965 - in /lucene/dev/branches/branch_5x: ./ lucene/ lucene/core/ lucene/core/src/java/org/apache/lucene/util/Accountables.java

Author: jpountz
Date: Tue Dec 16 15:00:20 2014
New Revision: 1645965

URL: http://svn.apache.org/r1645965
Log:
Fix compiler warning.

Modified:
    lucene/dev/branches/branch_5x/   (props changed)
    lucene/dev/branches/branch_5x/lucene/   (props changed)
    lucene/dev/branches/branch_5x/lucene/core/   (props changed)
    lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/Accountables.java

Modified: lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/Accountables.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/Accountables.java?rev=1645965&r1=1645964&r2=1645965&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/Accountables.java (original)
+++ lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/util/Accountables.java Tue Dec 16 15:00:20 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