From e6feb5d789a88b8518522906d3abf32d91a73394 Mon Sep 17 00:00:00 2001 From: Philippe GRANET Date: Wed, 23 Oct 2024 09:04:06 +0200 Subject: [PATCH] Fix infinite loop in MavenPomDownloader (#4598) --- .../java/org/openrewrite/maven/internal/MavenPomDownloader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rewrite-maven/src/main/java/org/openrewrite/maven/internal/MavenPomDownloader.java b/rewrite-maven/src/main/java/org/openrewrite/maven/internal/MavenPomDownloader.java index 013c1b2651a..d4f08e924ac 100644 --- a/rewrite-maven/src/main/java/org/openrewrite/maven/internal/MavenPomDownloader.java +++ b/rewrite-maven/src/main/java/org/openrewrite/maven/internal/MavenPomDownloader.java @@ -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()))){