Community
Participate
Working Groups
1. WARNING in /src/org/eclipse/equinox/weaving/internal/caching/j9/CachingServicePlugin.java (at line 78) final ServiceReference reference = context ServiceReference is a raw type. References to generic type ServiceReference<S> should be parameterized 2. WARNING in /src/org/eclipse/equinox/weaving/internal/caching/j9/CachingServicePlugin.java (at line 81) service = (DebugOptions) context.getService(reference); Type safety: Unchecked invocation getService(ServiceReference) of the generic method getService(ServiceReference<S>) of type BundleContext 3. WARNING in /src/org/eclipse/equinox/weaving/internal/caching/j9/CachingServicePlugin.java (at line 81) service = (DebugOptions) context.getService(reference); Type safety: The expression of type ServiceReference needs unchecked conversion to conform to ServiceReference<Object> 1. WARNING in /src/org/eclipse/equinox/weaving/internal/caching/Activator.java (at line 38) private ServiceRegistration cachingServiceFactoryRegistration; ServiceRegistration is a raw type. References to generic type ServiceRegistration<S> should be parameterized 2. WARNING in /src/org/eclipse/equinox/weaving/internal/caching/Activator.java (at line 85) final ServiceReference debugOptionsReference = bundleContext ServiceReference is a raw type. References to generic type ServiceReference<S> should be parameterized 3. WARNING in /src/org/eclipse/equinox/weaving/internal/caching/Activator.java (at line 88) final DebugOptions debugOptions = (DebugOptions) bundleContext .getService(debugOptionsReference); Type safety: Unchecked invocation getService(ServiceReference) of the generic method getService(ServiceReference<S>) of type BundleContext 4. WARNING in /src/org/eclipse/equinox/weaving/internal/caching/Activator.java (at line 89) .getService(debugOptionsReference); Type safety: The expression of type ServiceReference needs unchecked conversion to conform to ServiceReference<Object>
Need to be careful not to depend on newer methods on OSGi unless you want to have a dependency on the OSGi R4.3 specification. Martin, I can work on a patch if you want me to.
I released fixes for these warnings.