diff --git a/core/src/main/java/hudson/diagnosis/OldDataMonitor.java b/core/src/main/java/hudson/diagnosis/OldDataMonitor.java index 1c871df8df..6bbeed6cf5 100644 --- a/core/src/main/java/hudson/diagnosis/OldDataMonitor.java +++ b/core/src/main/java/hudson/diagnosis/OldDataMonitor.java @@ -272,9 +272,9 @@ public class OldDataMonitor extends AdministrativeMonitor { * @return True if the major version# differs or the minor# differs by ≥ threshold */ public boolean isOld(int threshold) { - return currentVersion != null && min != null && (currentVersion.digit(0) > min.digit(0) - || (currentVersion.digit(0) == min.digit(0) - && currentVersion.digit(1) - min.digit(1) >= threshold)); + return currentVersion != null && min != null && (currentVersion.getDigitAt(0) > min.getDigitAt(0) + || (currentVersion.getDigitAt(0) == min.getDigitAt(0) + && currentVersion.getDigitAt(1) - min.getDigitAt(1) >= threshold)); } }