Skip to content
Permalink
Browse files

Merge pull request #2851 from recena/version-number

[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 a32163f3549bbed7966a7d5fb4bb5707687b5bf7
Showing with 4 additions and 4 deletions.
  1. +1 −1 core/pom.xml
  2. +3 −3 core/src/main/java/hudson/diagnosis/OldDataMonitor.java
@@ -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 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 a32163f

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