| |   |
| 329 | 329 | int blockSize = superblock.getBlockSize(); |
| 330 | 330 | Block result; |
| 331 | 331 | |
| Integer key = new Integer((int) (nr)); |
| Integer key = Integer.valueOf((int) nr); |
| 333 | 333 | synchronized (blockCache) { |
| 334 | 334 | // check if the block has already been retrieved |
| 335 | 335 | if (blockCache.containsKey(key)) { |
| … | … | |
| 387 | 387 | |
| 388 | 388 | Block block; |
| 389 | 389 | |
| Integer key = new Integer((int) nr); |
| Integer key = Integer.valueOf((int) nr); |
| 391 | 391 | int blockSize = superblock.getBlockSize(); |
| 392 | 392 | // check if the block is in the cache |
| 393 | 393 | synchronized (blockCache) { |
| … | … | |
| 475 | 475 | throw new FileSystemException("INode number (" + iNodeNr + ") out of range (0-" + |
| 476 | 476 | superblock.getINodesCount() + ")"); |
| 477 | 477 | |
| Integer key = new Integer(iNodeNr); |
| Integer key = Integer.valueOf(iNodeNr); |
| 479 | 479 | |
| 480 | 480 | log.debug("iNodeCache size: " + inodeCache.size()); |
| 481 | 481 | |
| … | … | |
| 598 | 598 | |
| 599 | 599 | // put the inode into the cache |
| 600 | 600 | synchronized (inodeCache) { |
| Integer key = new Integer(iNodeNr); |
| Integer key = Integer.valueOf(iNodeNr); |
| 602 | 602 | if (inodeCache.containsKey(key)) |
| 603 | 603 | throw new FileSystemException("Newly allocated inode is already in the inode cache!?"); |
| 604 | 604 | else |
| … | … | |
| 896 | 896 | |
| 897 | 897 | // add the inode to the inode cache |
| 898 | 898 | synchronized (inodeCache) { |
| inodeCache.put(new Integer(Ext2Constants.EXT2_ROOT_INO), iNode); |
| inodeCache.put(Integer.valueOf(Ext2Constants.EXT2_ROOT_INO), iNode); |
| 900 | 900 | } |
| 901 | 901 | |
| 902 | 902 | modifyUsedDirsCount(0, 1); |