mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 13:02:19 +00:00
[JENKINS-43733] Adapt OldDataMonitor.VersionRange.isOld and remove deprecated method
This commit is contained in:
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user