diff options
Diffstat (limited to 'tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/Activator.java')
-rw-r--r-- | tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/Activator.java | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/Activator.java b/tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/Activator.java index d9ee4b89b..e32f78409 100644 --- a/tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/Activator.java +++ b/tests/org.eclipse.core.tests.net/src/org/eclipse/core/tests/net/Activator.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2007 IBM Corporation and others. + * Copyright (c) 2005, 2017 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -32,19 +32,11 @@ public class Activator extends Plugin { public Activator() { } - /* - * (non-Javadoc) - * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext) - */ public void start(BundleContext context) throws Exception { super.start(context); plugin = this; } - /* - * (non-Javadoc) - * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext) - */ public void stop(BundleContext context) throws Exception { plugin = null; super.stop(context); @@ -60,9 +52,9 @@ public class Activator extends Plugin { } public IProxyService getProxyService() { - ServiceReference serviceReference = getBundle().getBundleContext().getServiceReference(IProxyService.class.getName()); + ServiceReference<IProxyService> serviceReference = getBundle().getBundleContext().getServiceReference(IProxyService.class); if (serviceReference != null) - return (IProxyService)getBundle().getBundleContext().getService(serviceReference); + return getBundle().getBundleContext().getService(serviceReference); return null; } |