diff options
author | Lars Vogel | 2016-03-09 16:11:25 +0000 |
---|---|---|
committer | Lars Vogel | 2016-03-09 19:13:12 +0000 |
commit | 7c392ec6b3cbb83cde43785afbb39f175f00db81 (patch) | |
tree | f4320c58826125258b71bbb13bfb3ffbe4f70139 /bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/SystemBundleActivator.java | |
parent | 1ae5c93eb0e0c741f3f7831bce8f3b5a906eeb02 (diff) | |
download | rt.equinox.framework-7c392ec6b3cbb83cde43785afbb39f175f00db81.tar.gz rt.equinox.framework-7c392ec6b3cbb83cde43785afbb39f175f00db81.tar.xz rt.equinox.framework-7c392ec6b3cbb83cde43785afbb39f175f00db81.zip |
Bug 489312 - Prefer usage of Integer.valueof instead of new() for org.eclipse.osgi
Change-Id: I8b1062796d0d1f49146d1d21876de2aab303ae2a
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/SystemBundleActivator.java')
-rw-r--r-- | bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/SystemBundleActivator.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<String, String> 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)); |