[JENKINS-43733] Adapt OldDataMonitor.VersionRange.isOld and remove deprecated method

This commit is contained in:
Manuel Recena authored and recena committed 2017-04-26 21:10:15 +02:00
1 parent 9f3857aa78
commit 478bf9feca
1 file changed
+3 -3
@@ -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));
}
}