Skip to content

Commit

Permalink
Auto-close exploited resource
Browse files Browse the repository at this point in the history
  • Loading branch information
pzygielo committed Sep 24, 2021
1 parent 4e45989 commit 97ed8d3
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,10 @@ public void logFailedBuildLog( Log logger, boolean ignoreFailures )
buildLogMessage.append( System.lineSeparator() );
buildLogMessage.append( "*** begin build.log for: " + buildJob.getProject() + " ***" );
buildLogMessage.append( System.lineSeparator() );
FileReader buildLogReader = new FileReader( buildLogFile );
buildLogMessage.append( IOUtil.toString( buildLogReader ) );
try ( FileReader buildLogReader = new FileReader( buildLogFile ) )
{
buildLogMessage.append( IOUtil.toString( buildLogReader ) );
}
buildLogMessage.append( "*** end build.log for: " + buildJob.getProject() + " ***" );
buildLogMessage.append( System.lineSeparator() );

Expand Down

0 comments on commit 97ed8d3

Please sign in to comment.