Merge pull request #322 from DevFactory/dead-stores-fix-1
Fixing squid:S1854 - Dead stores should be removed
This commit is contained in:
		| @@ -57,10 +57,9 @@ public class RainbowFishSerializer { | ||||
|    * Read V1 RainbowFish from file | ||||
|    */ | ||||
|   public static RainbowFish readV1(String filename) throws IOException, ClassNotFoundException { | ||||
|     Map<String, String> map = null; | ||||
|     FileInputStream fileIn = new FileInputStream(filename); | ||||
|     ObjectInputStream objIn = new ObjectInputStream(fileIn); | ||||
|     map = (Map<String, String>) objIn.readObject(); | ||||
|     Map<String, String> map = (Map<String, String>) objIn.readObject(); | ||||
|     objIn.close(); | ||||
|     fileIn.close(); | ||||
|     return new RainbowFish(map.get("name"), Integer.parseInt(map.get("age")), Integer.parseInt(map | ||||
|   | ||||
		Reference in New Issue
	
	Block a user