Skip to content
Permalink
Browse files

[JENKINS-43733] Adapt OldDataMonitor.VersionRange.isOld and remove de…

…precated method
  • Loading branch information...
recena authored and recena committed Apr 21, 2017
1 parent 9f3857a commit 478bf9fecadfa3ecda95e3e4f2a8f5ef3f99d099
Showing with 3 additions and 3 deletions.
  1. +3 −3 core/src/main/java/hudson/diagnosis/OldDataMonitor.java
@@ -272,9 +272,9 @@ public String toString() {
* @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));
}

}

0 comments on commit 478bf9f

Please sign in to comment.
You can’t perform that action at this time.