Skip to content
Permalink
Browse files
Inline single use variables.
  • Loading branch information
garydgregory committed May 21, 2022
1 parent 24b0ecd commit 06e89cb618eb15657f57da70eefe30513fbbaca3
Showing 1 changed file with 2 additions and 4 deletions.
@@ -66,8 +66,7 @@ public JSONConfiguration(final HierarchicalConfiguration<ImmutableNode> c) {
@Override
public void read(final Reader in) throws ConfigurationException {
try {
final Map<String, Object> map = mapper.readValue(in, this.type);
load(map);
load(mapper.readValue(in, this.type));
} catch (final Exception e) {
rethrowException(e);
}
@@ -87,8 +86,7 @@ public void write(final Writer out) throws ConfigurationException, IOException {
@Override
public void read(final InputStream in) throws ConfigurationException {
try {
final Map<String, Object> map = mapper.readValue(in, this.type);
load(map);
load(mapper.readValue(in, this.type));
} catch (final Exception e) {
rethrowException(e);
}

0 comments on commit 06e89cb

Please sign in to comment.