Commit 6de613ea8527cbb261f0dca6d0c9a45e5acf4db6

  • avatar
  • galatnm <galatnm @407389f7-7c16-0410…ad85acb55d7f.>
  • Fri Oct 23 09:53:39 CEST 2009
Fix some findbugs problems.

git-svn-id: http://jnode.svn.sourceforge.net/svnroot/jnode/trunk@5686 407389f7-7c16-0410-9eee-ad85acb55d7f
  
329329 int blockSize = superblock.getBlockSize();
330330 Block result;
331331
332 Integer key = new Integer((int) (nr));
332 Integer key = Integer.valueOf((int) nr);
333333 synchronized (blockCache) {
334334 // check if the block has already been retrieved
335335 if (blockCache.containsKey(key)) {
387387
388388 Block block;
389389
390 Integer key = new Integer((int) nr);
390 Integer key = Integer.valueOf((int) nr);
391391 int blockSize = superblock.getBlockSize();
392392 // check if the block is in the cache
393393 synchronized (blockCache) {
475475 throw new FileSystemException("INode number (" + iNodeNr + ") out of range (0-" +
476476 superblock.getINodesCount() + ")");
477477
478 Integer key = new Integer(iNodeNr);
478 Integer key = Integer.valueOf(iNodeNr);
479479
480480 log.debug("iNodeCache size: " + inodeCache.size());
481481
598598
599599 // put the inode into the cache
600600 synchronized (inodeCache) {
601 Integer key = new Integer(iNodeNr);
601 Integer key = Integer.valueOf(iNodeNr);
602602 if (inodeCache.containsKey(key))
603603 throw new FileSystemException("Newly allocated inode is already in the inode cache!?");
604604 else
896896
897897 // add the inode to the inode cache
898898 synchronized (inodeCache) {
899 inodeCache.put(new Integer(Ext2Constants.EXT2_ROOT_INO), iNode);
899 inodeCache.put(Integer.valueOf(Ext2Constants.EXT2_ROOT_INO), iNode);
900900 }
901901
902902 modifyUsedDirsCount(0, 1);