Skip to content

Commit

Permalink
Use local variable for configured object mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheikah45 committed Mar 18, 2023
1 parent 7aa6dcb commit 5c88d82
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@ public class PreferencesConfig implements DisposableBean {
private final Path preferencesFilePath;
private final ObjectWriter preferencesWriter;
private final ObjectReader preferencesUpdater;
private final ObjectMapper configuredObjectMapper;
private final Preferences preferences;

public PreferencesConfig(OperatingSystem operatingSystem, ObjectMapper objectMapper) throws IOException, InterruptedException {
configuredObjectMapper = configureObjectMapper(objectMapper);
ObjectMapper configuredObjectMapper = configureObjectMapper(objectMapper);

preferences = new Preferences();

Expand Down

0 comments on commit 5c88d82

Please sign in to comment.