Skip to content

Commit

Permalink
Fix infinite loop in MavenPomDownloader (#4598)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe-granet authored Oct 23, 2024
1 parent 49524a7 commit e6feb5d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ public Pom download(GroupArtifactVersion gav,
return projectPom;
}
Parent parent = projectPom.getParent();
while (parent != null){
if (parent != null){
for (Pom project : projectPoms.values()) {
if (parent.getGroupId().equals(project.getGroupId()) && parent.getArtifactId().equals(project.getArtifactId())){
if (projectPom.getVersion().equals(project.getValue(gav.getVersion()))){
Expand Down

0 comments on commit e6feb5d

Please sign in to comment.