From: <ga...@us...> - 2009-10-23 07:53:49
|
Revision: 5686 http://jnode.svn.sourceforge.net/jnode/?rev=5686&view=rev Author: galatnm Date: 2009-10-23 07:53:39 +0000 (Fri, 23 Oct 2009) Log Message: ----------- Fix some findbugs problems. Modified Paths: -------------- trunk/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java Modified: trunk/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java =================================================================== --- trunk/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java 2009-10-23 07:44:44 UTC (rev 5685) +++ trunk/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java 2009-10-23 07:53:39 UTC (rev 5686) @@ -329,7 +329,7 @@ int blockSize = superblock.getBlockSize(); Block result; - Integer key = new Integer((int) (nr)); + Integer key = Integer.valueOf((int) nr); synchronized (blockCache) { // check if the block has already been retrieved if (blockCache.containsKey(key)) { @@ -387,7 +387,7 @@ Block block; - Integer key = new Integer((int) nr); + Integer key = Integer.valueOf((int) nr); int blockSize = superblock.getBlockSize(); // check if the block is in the cache synchronized (blockCache) { @@ -475,7 +475,7 @@ throw new FileSystemException("INode number (" + iNodeNr + ") out of range (0-" + superblock.getINodesCount() + ")"); - Integer key = new Integer(iNodeNr); + Integer key = Integer.valueOf(iNodeNr); log.debug("iNodeCache size: " + inodeCache.size()); @@ -598,7 +598,7 @@ // put the inode into the cache synchronized (inodeCache) { - Integer key = new Integer(iNodeNr); + Integer key = Integer.valueOf(iNodeNr); if (inodeCache.containsKey(key)) throw new FileSystemException("Newly allocated inode is already in the inode cache!?"); else @@ -896,7 +896,7 @@ // add the inode to the inode cache synchronized (inodeCache) { - inodeCache.put(new Integer(Ext2Constants.EXT2_ROOT_INO), iNode); + inodeCache.put(Integer.valueOf(Ext2Constants.EXT2_ROOT_INO), iNode); } modifyUsedDirsCount(0, 1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |