Skip to content

Commit

Permalink
Merge pull request #2851 from recena/version-number
Browse files Browse the repository at this point in the history
[JENKINS-43733] Pick up the latest release of version-number library
  • Loading branch information
oleg-nenashev committed Apr 29, 2017
2 parents 8a48e0c + 478bf9f commit a32163f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/pom.xml
Expand Up @@ -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>
Expand Down
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 a32163f

Please sign in to comment.