Skip to content
Snippets Groups Projects

Initial version

Merged Lucas Martin Thomaz requested to merge master into main
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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());
  • added 1 commit

    Compare with previous version

  • Lucas Martin Thomaz marked this merge request as ready

    marked this merge request as ready

  • mentioned in commit 9cf63f0f

  • Please register or sign in to reply
    Loading