Skip to content

Commit

Permalink
[JENKINS-43733] Adapt OldDataMonitor.VersionRange.isOld and remove de…
Browse files Browse the repository at this point in the history
…precated method
  • Loading branch information
recena authored and recena committed Apr 26, 2017
1 parent 9f3857a commit 478bf9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/main/java/hudson/diagnosis/OldDataMonitor.java
Expand Up @@ -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));
}

}
Expand Down

0 comments on commit 478bf9f

Please sign in to comment.