aboutsummaryrefslogtreecommitdiffstats
path: root/component
diff options
context:
space:
mode:
authorgjoranv <gjoranv@gmail.com>2018-05-02 10:27:09 +0200
committerGitHub <noreply@github.com>2018-05-02 10:27:09 +0200
commit2680d03d7160d97be2ae85429e7c457160b056fe (patch)
treefd0112e1748ba73c0efb95dbd6be52c43b04740d /component
parent5a47ec87c934f42f66700437c9541ee5be7b669f (diff)
Revert "Gjoranv/java9 prep 05"
Diffstat (limited to 'component')
-rw-r--r--component/src/main/java/com/yahoo/component/VersionSpecification.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/component/src/main/java/com/yahoo/component/VersionSpecification.java b/component/src/main/java/com/yahoo/component/VersionSpecification.java
index c926df4a80b..223e6b05b6a 100644
--- a/component/src/main/java/com/yahoo/component/VersionSpecification.java
+++ b/component/src/main/java/com/yahoo/component/VersionSpecification.java
@@ -121,19 +121,19 @@ public final class VersionSpecification implements Comparable<VersionSpecificati
if (components.length > 0) {
String s = components[0];
if (! s.equals("*")) {
- major = Integer.valueOf(s);
+ major = new Integer(s);
}
}
if (components.length > 1) {
String s = components[1];
if (! s.equals("*")) {
- minor = Integer.valueOf(s);
+ minor = new Integer(s);
}
}
if (components.length > 2) {
String s = components[2];
if (! s.equals("*")) {
- micro = Integer.valueOf(s);
+ micro = new Integer(s);
}
}
if (components.length > 3) {