aboutsummaryrefslogtreecommitdiffstats
path: root/component/src/main/java/com/yahoo/component/VersionSpecification.java
diff options
context:
space:
mode:
Diffstat (limited to 'component/src/main/java/com/yahoo/component/VersionSpecification.java')
-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) {