Skip to content

Commit

Permalink
Remove redundant type Parameters
Browse files Browse the repository at this point in the history
to reduce ecj warnings
  • Loading branch information
EcljpseB0T committed Nov 2, 2023
1 parent 8beb9ce commit 5ca4f9a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void start(BundleContext context) throws Exception {
boolean shouldRegister = !"false".equalsIgnoreCase(context.getProperty(PROP_REGISTER_PERF_SERVICE)); //$NON-NLS-1$
if (shouldRegister) {
preferencesService = bundleContext.registerService(IPreferencesService.class,
PreferencesService.getDefault(), new Hashtable<String, Object>());
PreferencesService.getDefault(), new Hashtable<>());
osgiPreferencesService = bundleContext.registerService(org.osgi.service.prefs.PreferencesService.class,
new OSGiPreferencesServiceManager(bundleContext), null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public void startRegistry() throws CoreException {
defaultRegistry = RegistryFactory.createRegistry(strategy, masterRegistryKey, userRegistryKey);

registryRegistration = Activator.getContext().registerService(IExtensionRegistry.class.getName(),
defaultRegistry, new Hashtable<String, Object>());
defaultRegistry, new Hashtable<>());
defaultProvider = new RegistryProviderOSGI(defaultRegistry);
// Set the registry provider and specify this as a default registry:
RegistryProviderFactory.setDefault(defaultProvider);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public void end() {
ModuleRevisionBuilder systemModuleBuilder = OSGiManifestBuilderFactory.createBuilder(getSystemManifest(),
Constants.SYSTEM_BUNDLE_SYMBOLICNAME, systemPackages.toString(), systemEEs.toString());
Module systemBundle = container.install(null, Constants.SYSTEM_BUNDLE_LOCATION, systemModuleBuilder,
new AtomicReference<Long>());
new AtomicReference<>());
executionEnvironments.addAll(systemBundle.getCurrentRevision()
.getDeclaredCapabilities(ExecutionEnvironmentNamespace.EXECUTION_ENVIRONMENT_NAMESPACE));

Expand Down Expand Up @@ -180,7 +180,7 @@ private Map<String, String> getSystemManifest() {
Module installModule(ModuleContainer container, String bsn, String version, String imports, String eeReqs,
List<BundleCapability> availableEEs) throws BundleException {
ModuleRevisionBuilder builder = createModuleRevisionBuilder(bsn, version, imports, eeReqs);
Module m = container.install(null, bsn, builder, new AtomicReference<Long>());
Module m = container.install(null, bsn, builder, new AtomicReference<>());
// Use a revision info that holds the EE_INDEX of the bundle based
// on the EE capability that matches the modules EE requirement
Collection<BundleRequirement> eeBundleReqs = m.getCurrentRevision()
Expand Down

0 comments on commit 5ca4f9a

Please sign in to comment.