Does this try-catch-with-resources auto-close?
It has a return
in the body before it reaches the end.
Will it still auto-close the stream?
try (FileReader reader = new FileReader(characterFile)) {
final SavedPlayer savedPlayer = GSON.fromJson(reader, SavedPlayer.class);
return new Login(player, LoginType.SUCCESSFUL);
} catch (IOException e) {
e.printStackTrace();
return new Login(player, LoginType.INPUT_FAILURE);
}