diff options
author | gjoranv <gv@oath.com> | 2018-04-30 23:47:50 +0200 |
---|---|---|
committer | gjoranv <gv@oath.com> | 2018-04-30 23:47:50 +0200 |
commit | 7882a58621091e8a035b675f149c5c533e3c1907 (patch) | |
tree | bc028893e23cf85eab232ef9e7af3a4569e636b7 /component/src | |
parent | a9c3ea1ef9fe3744ad2e93c9c11051510cd89ee3 (diff) |
Java 9: Replace 'new Integer' with 'Integer.valueOf'
Diffstat (limited to 'component/src')
-rw-r--r-- | component/src/main/java/com/yahoo/component/VersionSpecification.java | 6 |
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) { |