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

Suppress warnings about deprecated Preferences in legacy Code #531

Closed
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 @@ -9,7 +9,7 @@ Bundle-Localization: plugin
Require-Bundle: org.eclipse.equinox.common;bundle-version="[3.18.0,4.0.0)",
org.eclipse.equinox.registry;bundle-version="[3.2.0,4.0.0)";resolution:=optional,
org.osgi.service.prefs;bundle-version="[1.1.0,1.2.0)";visibility:=reexport
Export-Package: org.eclipse.core.internal.preferences;x-friends:="org.eclipse.core.resources,org.eclipse.core.runtime,org.eclipse.equinox.p2.engine",
Export-Package: org.eclipse.core.internal.preferences;x-friends:="org.eclipse.core.resources,org.eclipse.core.runtime,org.eclipse.equinox.p2.engine, org.eclipse.jdt.ls.filesystem",
org.eclipse.core.internal.preferences.exchange;x-friends:="org.eclipse.core.runtime",
org.eclipse.core.runtime.preferences;version="3.5.0"
Bundle-ActivationPolicy: lazy; exclude:="org.eclipse.core.internal.preferences.exchange"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* has been separated into a separate class to ensure that the preferences will
* be able to run without the registry being present.
*/
@SuppressWarnings("deprecation") // ILegacyPreferences
public class PreferenceServiceRegistryHelper implements IRegistryChangeListener {

private static final String ELEMENT_INITIALIZER = "initializer"; //$NON-NLS-1$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*
* @since org.eclipse.equinox.preferences 3.2
*/
@SuppressWarnings("deprecation") // ILegacyPreferences
public class PreferencesOSGiUtils {
private ServiceTracker<?, ILegacyPreferences> initTracker;
private ServiceTracker<?, DebugOptions> debugTracker;
Expand Down
Loading