commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1584226 - /commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/auxiliary/disk/block/BlockDisk.java
Date Thu, 03 Apr 2014 00:24:21 GMT
Author: sebb
Date: Thu Apr  3 00:24:21 2014
New Revision: 1584226

URL: http://svn.apache.org/r1584226
Log:
Explicit boxing

Modified:
    commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/auxiliary/disk/block/BlockDisk.java

Modified: commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/auxiliary/disk/block/BlockDisk.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/auxiliary/disk/block/BlockDisk.java?rev=1584226&r1=1584225&r2=1584226&view=diff
==============================================================================
--- commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/auxiliary/disk/block/BlockDisk.java
(original)
+++ commons/proper/jcs/trunk/src/java/org/apache/commons/jcs/auxiliary/disk/block/BlockDisk.java
Thu Apr  3 00:24:21 2014
@@ -148,9 +148,9 @@ public class BlockDisk
             Integer emptyBlock = emptyBlocks.takeFirst();
             if (emptyBlock == null)
             {
-                emptyBlock = numberOfBlocks.getAndIncrement();
+                emptyBlock = Integer.valueOf(numberOfBlocks.getAndIncrement());
             }
-            blocks[i] = emptyBlock;
+            blocks[i] = emptyBlock.intValue();
         }
 
         return blocks;



Mime
View raw message