Author: toad
Date: 2008-12-17 19:30:10 +0000 (Wed, 17 Dec 2008)
New Revision: 24462

Modified:
   
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java
Log:
No need for cast


Modified: 
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java
===================================================================
--- 
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java  
    2008-12-17 19:29:30 UTC (rev 24461)
+++ 
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java  
    2008-12-17 19:30:10 UTC (rev 24462)
@@ -170,7 +170,7 @@
                                int x;
                                if(blockNums.size() == 0) return null;
                                x = context.random.nextInt(blockNums.size());
-                               ret = (Integer) blockNums.remove(x);
+                               ret = blockNums.remove(x);
                                Key key = 
segment.getBlockNodeKey(((Integer)ret).intValue(), container);
                                if(key == null) {
                                        if(segment.isFinishing(container) || 
segment.isFinished(container)) return null;

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to