Skip to content

Commit

Permalink
Mark deprecated methods in Plugin for deletion
Browse files Browse the repository at this point in the history
Mark as deprecated for a very long time, lets mark them for deletion.
  • Loading branch information
vogella committed Nov 8, 2024
1 parent 7d67aa5 commit e72e569
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public abstract class Plugin implements BundleActivator {
* @since 2.0
* @deprecated
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-12")
private Preferences preferences = null;

/**
Expand Down Expand Up @@ -213,7 +213,7 @@ public Plugin() {
* @return a URL for the given path or <code>null</code>
* @deprecated use {@link FileLocator#find(Bundle, IPath, Map)}
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-12")
public final URL find(IPath path) {
return FileLocator.find(getBundle(), path, null);
}
Expand All @@ -232,7 +232,7 @@ public final URL find(IPath path) {
* @return a URL for the given path or <code>null</code>
* @deprecated use {@link FileLocator#find(Bundle, IPath, Map)}
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-12")
public final URL find(IPath path, Map<String,String> override) {
return FileLocator.find(getBundle(), path, override);
}
Expand Down Expand Up @@ -317,7 +317,7 @@ public final IPath getStateLocation() throws IllegalStateException {
* obtaining other kinds of preference values (strings, booleans,
* etc).
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-12")
public final Preferences getPluginPreferences() {
final Bundle bundleCopy = getBundle();
if (preferences != null) {
Expand Down Expand Up @@ -353,7 +353,7 @@ public final Preferences getPluginPreferences() {
* @since 2.0
* @deprecated Replaced by InstanceScope.getNode(&lt;bundleId&gt;).flush()
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-12")
public final void savePluginPreferences() {
if (InternalPlatform.getDefault().isRunning()) {
Location instance = InternalPlatform.getDefault().getInstanceLocation();
Expand Down Expand Up @@ -424,7 +424,7 @@ public final void savePluginPreferences() {
* }
* </pre>
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-12")
protected void initializeDefaultPluginPreferences() {
// default implementation of this method - spec'd to do nothing
}
Expand All @@ -437,7 +437,7 @@ protected void initializeDefaultPluginPreferences() {
* @since 3.0
* @deprecated
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-12")
public final void internalInitializeDefaultPluginPreferences() {
initializeDefaultPluginPreferences();
}
Expand Down Expand Up @@ -479,7 +479,7 @@ public boolean isDebugging() {
* @see #openStream(IPath,boolean)
* @deprecated use {@link FileLocator#openStream(Bundle, IPath, boolean)}
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-12")
public final InputStream openStream(IPath file) throws IOException {
return FileLocator.openStream(getBundle(), file, false);
}
Expand All @@ -502,7 +502,7 @@ public final InputStream openStream(IPath file) throws IOException {
* @exception IOException if the given path cannot be found in this plug-in
* @deprecated use {@link FileLocator#openStream(Bundle, IPath, boolean)}
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-12")
public final InputStream openStream(IPath file, boolean substituteArgs) throws IOException {
return FileLocator.openStream(getBundle(), file, substituteArgs);
}
Expand Down Expand Up @@ -576,7 +576,7 @@ private DebugOptions getDebugOptions() {
*
* @deprecated
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-12")
public void shutdown() throws CoreException {
// intentionally left empty
}
Expand All @@ -600,7 +600,7 @@ public void shutdown() throws CoreException {
*
* @deprecated
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-12")
public void startup() throws CoreException {
// intentionally left empty
}
Expand Down

0 comments on commit e72e569

Please sign in to comment.