Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-02-08 07:56:03 +0000
committerLars Vogel2019-02-08 07:56:03 +0000
commit684430b1320e2e5f99dc7a93dda6484558b606ae (patch)
tree1fac18672421e3eda8d727c20cbd3ea4e429be83
parent3de13ac29f2ca0efe1d03675b6f13d562bd624a0 (diff)
downloadrt.equinox.framework-684430b1320e2e5f99dc7a93dda6484558b606ae.tar.gz
rt.equinox.framework-684430b1320e2e5f99dc7a93dda6484558b606ae.tar.xz
rt.equinox.framework-684430b1320e2e5f99dc7a93dda6484558b606ae.zip
Remove usage of deprecated new Integer in org.eclipse.equinox.launcher
Change-Id: I8b40798edda6707eb91f338413c12693957500cf Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
index 7c0f5365e..ea46e7fff 100644
--- a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
+++ b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
@@ -1171,7 +1171,7 @@ public class Main {
private Object[] getVersionElements(String version) {
if (version.endsWith(".jar")) //$NON-NLS-1$
version = version.substring(0, version.length() - 4);
- Object[] result = {new Integer(0), new Integer(0), new Integer(0), ""}; //$NON-NLS-1$
+ Object[] result = {Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(0), ""}; //$NON-NLS-1$
StringTokenizer t = new StringTokenizer(version, "."); //$NON-NLS-1$
String token;
int i = 0;
@@ -1180,7 +1180,7 @@ public class Main {
if (i < 3) {
// major, minor or service ... numeric values
try {
- result[i++] = new Integer(token);
+ result[i++] = Integer.valueOf(token);
} catch (Exception e) {
// invalid number format - use default numbers (0) for the rest
break;

Back to the top