From 7c392ec6b3cbb83cde43785afbb39f175f00db81 Mon Sep 17 00:00:00 2001 From: Lars Vogel Date: Wed, 9 Mar 2016 17:11:25 +0100 Subject: Bug 489312 - Prefer usage of Integer.valueof instead of new() for org.eclipse.osgi Change-Id: I8b1062796d0d1f49146d1d21876de2aab303ae2a Signed-off-by: Lars Vogel --- .../src/org/eclipse/osgi/internal/framework/SystemBundleActivator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/SystemBundleActivator.java') diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/SystemBundleActivator.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/SystemBundleActivator.java index 01d3b4fd4..1c61c3188 100644 --- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/SystemBundleActivator.java +++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/SystemBundleActivator.java @@ -220,7 +220,7 @@ public class SystemBundleActivator implements BundleActivator { Dictionary headers = context.getBundle().getHeaders(); properties.put(Constants.SERVICE_VENDOR, headers.get(Constants.BUNDLE_VENDOR)); if (setRanking) { - properties.put(Constants.SERVICE_RANKING, new Integer(Integer.MAX_VALUE)); + properties.put(Constants.SERVICE_RANKING, Integer.valueOf(Integer.MAX_VALUE)); } properties.put(Constants.SERVICE_PID, context.getBundle().getBundleId() + "." + service.getClass().getName()); //$NON-NLS-1$ registrations.add(context.registerService(serviceClass, service, properties)); -- cgit v1.2.3