summaryrefslogtreecommitdiffstats
path: root/jdisc_core_test/test_bundles/my-bundle-activator
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahoo-inc.com>2017-04-27 11:57:02 +0200
committerArne H Juul <arnej@yahoo-inc.com>2017-04-27 11:57:02 +0200
commitd5e1c475954a855c458cfe469c1335027d445e1c (patch)
treea7c9b8d4dda6725d993d5404a682cdda188bff2c /jdisc_core_test/test_bundles/my-bundle-activator
parent2c69a5846580c161befcfc6e01d02d41099a52ea (diff)
avoid warnings
Diffstat (limited to 'jdisc_core_test/test_bundles/my-bundle-activator')
-rw-r--r--jdisc_core_test/test_bundles/my-bundle-activator/src/main/java/com/yahoo/jdisc/bundle/MyBundleActivator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/jdisc_core_test/test_bundles/my-bundle-activator/src/main/java/com/yahoo/jdisc/bundle/MyBundleActivator.java b/jdisc_core_test/test_bundles/my-bundle-activator/src/main/java/com/yahoo/jdisc/bundle/MyBundleActivator.java
index a7e4984a367..955efdab9ff 100644
--- a/jdisc_core_test/test_bundles/my-bundle-activator/src/main/java/com/yahoo/jdisc/bundle/MyBundleActivator.java
+++ b/jdisc_core_test/test_bundles/my-bundle-activator/src/main/java/com/yahoo/jdisc/bundle/MyBundleActivator.java
@@ -12,11 +12,11 @@ import org.osgi.framework.ServiceRegistration;
*/
public class MyBundleActivator implements BundleActivator {
- private ServiceRegistration registration;
+ private ServiceRegistration<?> registration;
@Override
public void start(BundleContext ctx) throws Exception {
- ServiceReference seviceRef = ctx.getServiceReference(CurrentContainer.class.getName());
+ ServiceReference<?> seviceRef = ctx.getServiceReference(CurrentContainer.class.getName());
if (seviceRef == null) {
throw new IllegalStateException("Service reference '" + CurrentContainer.class.getName() + "' not found.");
}