gnodet commented on a change in pull request #627:
URL: https://github.com/apache/maven/pull/627#discussion_r761474068
##########
File path:
maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java
##########
@@ -202,6 +210,80 @@ private void execute( MavenSession session, MojoExecution
mojoExecution, Project
}
}
+ try ( ProjectLock lock = new ProjectLock( session, mojoDescriptor,
aggregatorLock ) )
Review comment:
Yes, I think leveraging the `AutoCloseable` makes sense here, but it's
just a syntactic trick to avoid the finally block...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]