File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
maven_plugin/src/main/java/io/github/chains_project/maven_lockfile Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -349,10 +349,11 @@ private static Pom constructRecursivePom(
349349 String checksumAlgorithm = checksumCalculator .getChecksumAlgorithm ();
350350
351351 List <MavenProject > recursiveProjects = new ArrayList <>();
352- recursiveProjects .add (initialProject );
353- while (recursiveProjects .get (recursiveProjects .size () - 1 ).hasParent ()) {
354- recursiveProjects .add (
355- recursiveProjects .get (recursiveProjects .size () - 1 ).getParent ());
352+ MavenProject currentProject = initialProject ;
353+ recursiveProjects .add (currentProject );
354+ while (currentProject .hasParent ()) {
355+ currentProject = currentProject .getParent ();
356+ recursiveProjects .add (currentProject );
356357 }
357358
358359 Pom lastPom = null ;
You can’t perform that action at this time.
0 commit comments