diff --git a/core/deployment/src/main/java/io/quarkus/deployment/ide/IdeProcessor.java b/core/deployment/src/main/java/io/quarkus/deployment/ide/IdeProcessor.java index 56903f4840665..b9d9b9f035d59 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/ide/IdeProcessor.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/ide/IdeProcessor.java @@ -102,10 +102,10 @@ public EffectiveIdeBuildItem effectiveIde(LaunchModeBuildItem launchModeBuildIte } } } - if (matches.size() == 1) { - result = matches.get(0); - } else if (matches.size() == 0 && runningIdes.size() > 0) { + if ((matches.size() == 0 && runningIdes.size() > 0)) { result = runningIdes.iterator().next(); + } else if (matches.size() >= 1) { + result = matches.get(0); } } }