Skip to content

Commit 31243e2

Browse files
author
app_modernization
committed
fix
1 parent 222c411 commit 31243e2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/upgrade/dependency.metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { Upgrade } from "../constants";
55
import { UpgradeReason, type DependencyCheckMetadata } from "./type";
66

7-
const MATURE_JAVA_LTS_VERSION = 21;
7+
const MATURE_JAVA_LTS_VERSION = 25;
88

99
export const DEPENDENCY_JAVA_RUNTIME = {
1010
"name": "Java Runtime",

src/upgrade/utility.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function buildNotificationMessage(issue: UpgradeIssue, hasExtension: bool
3434
const upgradeWord = hasExtension ? "upgrade" : `install ${ExtensionName.APP_MODERNIZATION_EXTENSION_NAME} extension and upgrade`;
3535

3636
if (packageId === Upgrade.PACKAGE_ID_FOR_JAVA_RUNTIME) {
37-
return `This project is using an older Java runtime (${currentVersion}). Would you like to ${upgradeWord} it to ${suggestedVersionName} (LTS)?`;
37+
return `This project is using an older Java runtime (${currentVersion}). Would you like to ${upgradeWord} it to a newer LTS version?`;
3838
}
3939

4040
switch (reason) {
@@ -94,8 +94,7 @@ export function buildFixPrompt(issue: UpgradeIssue): string {
9494

9595
switch (reason) {
9696
case UpgradeReason.JRE_TOO_OLD: {
97-
const { suggestedVersion: { name: suggestedVersionName } } = issue;
98-
return `upgrade java runtime to the LTS version ${suggestedVersionName}`;
97+
return `upgrade java runtime to the latest LTS version`;
9998
}
10099
case UpgradeReason.END_OF_LIFE:
101100
case UpgradeReason.DEPRECATED: {

0 commit comments

Comments
 (0)