提交 a32163f3 编写于 作者: O Oleg Nenashev 提交者: GitHub

Merge pull request #2851 from recena/version-number

[JENKINS-43733] Pick up the latest release of version-number library
......@@ -65,7 +65,7 @@ THE SOFTWARE.
<dependency>
<groupId>org.jenkins-ci</groupId>
<artifactId>version-number</artifactId>
<version>1.3</version>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci</groupId>
......
......@@ -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));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册