diff options
author | Arne H Juul <arnej@yahoo-inc.com> | 2017-04-27 11:57:02 +0200 |
---|---|---|
committer | Arne H Juul <arnej@yahoo-inc.com> | 2017-04-27 11:57:02 +0200 |
commit | d5e1c475954a855c458cfe469c1335027d445e1c (patch) | |
tree | a7c9b8d4dda6725d993d5404a682cdda188bff2c /jdisc_core_test/test_bundles/my-bundle-activator | |
parent | 2c69a5846580c161befcfc6e01d02d41099a52ea (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.java | 4 |
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."); } |