TestingScheduledThreadPoolImpl oldInstance;
try {
oldInstance = (TestingScheduledThreadPoolImpl) old.getInstance();
- } catch (ClassCastException e) {// happens after OSGi update
+ } catch (final ClassCastException e) {// happens after OSGi update
oldInstance = null;
}
@Override
public Set<Module> getDefaultModules(final DependencyResolverFactory dependencyResolverFactory, final BundleContext bundleContext) {
- return new HashSet<Module>();
+ return new HashSet<>();
}
@Override