summaryrefslogtreecommitdiffstats
path: root/component
diff options
context:
space:
mode:
authorgjoranv <gv@oath.com>2018-04-30 23:47:50 +0200
committergjoranv <gv@oath.com>2018-04-30 23:47:50 +0200
commit7882a58621091e8a035b675f149c5c533e3c1907 (patch)
treebc028893e23cf85eab232ef9e7af3a4569e636b7 /component
parenta9c3ea1ef9fe3744ad2e93c9c11051510cd89ee3 (diff)
Java 9: Replace 'new Integer' with 'Integer.valueOf'
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 223e6b05b6a..c926df4a80b 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 = new Integer(s);
+ major = Integer.valueOf(s);
}
}
if (components.length > 1) {
String s = components[1];
if (! s.equals("*")) {
- minor = new Integer(s);
+ minor = Integer.valueOf(s);
}
}
if (components.length > 2) {
String s = components[2];
if (! s.equals("*")) {
- micro = new Integer(s);
+ micro = Integer.valueOf(s);
}
}
if (components.length > 3) {