Upgrade to latest patch. CodeAction list rather than single and more

1. CodeAction array rather than single code action expected
2. Support upgrade to the latest patch version
3. Boot version validation async from java sources validation
4. Labels for boot version quick fixes
This commit is contained in:
aboyko
2022-11-16 17:05:07 -05:00
parent ed4eef0e0a
commit 09c62da414
11 changed files with 83 additions and 27 deletions

View File

@@ -200,6 +200,24 @@ public class SpringProjectUtil {
Integer.parseInt(patch),
qualifier
);
} else {
String[] tokens = version.split("\\.");
if (tokens.length <= 3) {
if (tokens.length >= 1) {
int major = Integer.parseInt(tokens[0]);
if (tokens.length >= 2) {
int minor = Integer.parseInt(tokens[1]);
if (tokens.length == 3) {
int patch = Integer.parseInt(tokens[2]);
return new Version(major, minor, patch, null);
} else {
return new Version(major, minor, 0, null);
}
} else {
return new Version(major, 0, 0, null);
}
}
}
}
return null;
}