Skip to content

Commit

Permalink
Merge pull request #128 from lasselindqvist/issue-127
Browse files Browse the repository at this point in the history
Issue #127: Bump minimum Java version to 1.8
  • Loading branch information
lasselindqvist authored Mar 19, 2021
2 parents ed2fea4 + 0cafed0 commit e564f35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>1.8</source>
<target>1.8</target>
<compilerArgs>
<arg>-Xlint</arg>
</compilerArgs>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -724,17 +724,11 @@ public void execute() throws MojoExecutionException, MojoFailureException {
stringBuilder.append(arg);
}

FileWriter writer = null;
try {
writer = new FileWriter(temporaryConfigurationFile);
try (FileWriter writer = new FileWriter(temporaryConfigurationFile);) {
IOUtils.write(stringBuilder.toString(), writer);
} catch (IOException e) {
throw new MojoFailureException("cannot write to temporary configuration file " + temporaryConfigurationFile, e);
} finally {
if(writer != null) {
writer.close();
}
}
}

args = new ArrayList<String>();
args.add("-include");
Expand Down

0 comments on commit e564f35

Please sign in to comment.