Bug 489986 - Replace new Integer() with Integer.valueOf() in
org.eclipse.test

Change-Id: I794413936999ec48b8cf1771909aff9ff33dc8d5
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
diff --git a/bundles/org.eclipse.test/src/org/eclipse/test/CoreTestApplication.java b/bundles/org.eclipse.test/src/org/eclipse/test/CoreTestApplication.java
index c3d28ea..f59a399 100644
--- a/bundles/org.eclipse.test/src/org/eclipse/test/CoreTestApplication.java
+++ b/bundles/org.eclipse.test/src/org/eclipse/test/CoreTestApplication.java
@@ -31,7 +31,7 @@
 	@Override
 	public Object run(Object arguments) throws Exception {
 		String[] args= Platform.getCommandLineArgs();//getCommand//processCommandLine((String[]) arguments);
-		return new Integer(runTests(args));
+		return Integer.valueOf(runTests(args));
 	}
 
 	protected int runTests(String[] args) throws IOException {
diff --git a/bundles/org.eclipse.test/src/org/eclipse/test/UITestApplication.java b/bundles/org.eclipse.test/src/org/eclipse/test/UITestApplication.java
index b83a195..966b0d0 100644
--- a/bundles/org.eclipse.test/src/org/eclipse/test/UITestApplication.java
+++ b/bundles/org.eclipse.test/src/org/eclipse/test/UITestApplication.java
@@ -63,7 +63,7 @@
 		if (!IPlatformRunnable.EXIT_OK.equals(result)) {
 			System.err.println("UITestRunner: Unexpected result from running application " + application + ": " + result);
 		}
-		return new Integer(fTestRunnerResult);
+		return Integer.valueOf(fTestRunnerResult);
 	}