Skip to content

Commit

Permalink
LPD-38770 com.liferay.ide.upgrade.plan.core: uses CoreUtil.parseVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbrokke committed Nov 1, 2024
1 parent 7011888 commit e71d631
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ protected Status compute() {

NewUpgradePlanOp op = context(NewUpgradePlanOp.class);

Version currentVersion = new Version(get(op.getCurrentVersion()));
Version targetVersion = new Version(get(op.getTargetVersion()));
Version currentVersion = CoreUtil.parseVersion(get(op.getCurrentVersion()));
Version targetVersion = CoreUtil.parseVersion(get(op.getTargetVersion()));

if (CoreUtil.compareVersions(currentVersion, targetVersion) >= 0) {
retval = Status.createErrorStatus("Target version must be greater than current version.");
Expand Down

0 comments on commit e71d631

Please sign in to comment.