You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2021/12/13 12:52:30 UTC

[GitHub] [maven] garydgregory commented on a change in pull request #628: [3.8.x][MNG-7156][MNG-7285] Add locking in MojoExecutor

garydgregory commented on a change in pull request #628:
URL: https://github.com/apache/maven/pull/628#discussion_r767729923



##########
File path: maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java
##########
@@ -119,6 +119,18 @@ public void testResolveDependencies()
         assertEquals( 1, results.size() );
         MavenProject mavenProject = results.get( 0 ).getProject();
         assertEquals( 1, mavenProject.getArtifacts().size() );
+
+        final MavenProject project = mavenProject;
+        final int[] getArtifactsResultInAnotherThead = { 0 };

Review comment:
       Youi'll likely want to use an AtomicInteger here instead of this classic hack (in the good sense of the word hack of course)




-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org