Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant type Parameters #390

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading