Missing bit of the fix
This commit is contained in:
@@ -64,6 +64,10 @@ public class UpdateBootVersion extends AbstractDiagnosticValidator {
|
||||
List<CodeAction> actions = new ArrayList<>(2);
|
||||
|
||||
bootUpgradeOpt.flatMap(bu -> bu.getNearestAvailableMinorVersion(latest)).map(targetVersion -> {
|
||||
Version upgradeVersion = SpringProjectUtil.getVersion(targetVersion);
|
||||
if (javaProjectVersion.compareTo(upgradeVersion) >= 0) {
|
||||
return null;
|
||||
}
|
||||
CodeAction c = new CodeAction();
|
||||
c.setKind(CodeActionKind.QuickFix);
|
||||
c.setTitle("Upgrade to Spring Boot " + targetVersion + " (executes the full project conversion recipe from OpenRewrite)");
|
||||
|
||||
Reference in New Issue
Block a user