This is an automated email from the ASF dual-hosted git repository. michaelo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git
commit 656e3af6caec81cd21443631990504de245c0743 Author: Piotrek Żygieło <[email protected]> AuthorDate: Fri Sep 24 10:07:38 2021 +0200 Extract reader to local variable --- src/main/java/org/apache/maven/plugins/invoker/InvokerSession.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/maven/plugins/invoker/InvokerSession.java b/src/main/java/org/apache/maven/plugins/invoker/InvokerSession.java index 06cead4..511d8e5 100644 --- a/src/main/java/org/apache/maven/plugins/invoker/InvokerSession.java +++ b/src/main/java/org/apache/maven/plugins/invoker/InvokerSession.java @@ -236,7 +236,8 @@ class InvokerSession buildLogMessage.append( System.lineSeparator() ); buildLogMessage.append( "*** begin build.log for: " + buildJob.getProject() + " ***" ); buildLogMessage.append( System.lineSeparator() ); - buildLogMessage.append( IOUtil.toString( new FileReader( buildLogFile ) ) ); + FileReader buildLogReader = new FileReader( buildLogFile ); + buildLogMessage.append( IOUtil.toString( buildLogReader ) ); buildLogMessage.append( "*** end build.log for: " + buildJob.getProject() + " ***" ); buildLogMessage.append( System.lineSeparator() );
