Initial version
1 unresolved thread
1 unresolved thread
Merge request reports
Activity
requested review from @Lucas
assigned to @Lucas
- src/itemhandler/ItemRegistryStorage.java 0 → 100644
28 os.writeObject(itemMap); 29 } 30 } 31 32 /** 33 * Reads file to store hashmap. 34 35 * @return hashMap of type String, Item 36 * @throws IOException no itms were found 37 */ 38 public Map<String, Item> readFile() throws ClassNotFoundException, IOException 39 { 40 try (ObjectInputStream is = new ObjectInputStream(new FileInputStream(PATH))) 41 { 42 // Unable to resolve warning even with an instanceof if statement. 43 return ((HashMap<String, Item>) is.readObject()); mentioned in commit 9cf63f0f
Please register or sign in to reply