lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpou...@apache.org
Subject svn commit: r1645962 - /lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/util/Accountables.java
Date Tue, 16 Dec 2014 14:57:58 GMT
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



Mime
View raw message