Skip to content

Commit 5781565

Browse files
committed
Marked long-time deprecated API in Plugin for removal
Plugin contains methods which are marked since a long time as deprecated. Marking these for removal to give us the flexibility to remove these after API freeze period if needed. Triggered by an investigation of ILegacyPreferences from Equinox which calls some of these methods in PreferenceServiceRegistryHelper during startup. savePluginPreferences and getPluginPreferences are not yet marked for deletion as they are still used by the Ant tooling. d
1 parent 3182ab2 commit 5781565

File tree

1 file changed

+7
-7
lines changed
  • runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime

1 file changed

+7
-7
lines changed

runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Plugin.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public Plugin() {
213213
* @return a URL for the given path or <code>null</code>
214214
* @deprecated use {@link FileLocator#find(Bundle, IPath, Map)}
215215
*/
216-
@Deprecated
216+
@Deprecated(forRemoval = true, since = "2025-06 (removal in 2027-06 or later)")
217217
public final URL find(IPath path) {
218218
return FileLocator.find(getBundle(), path, null);
219219
}
@@ -232,7 +232,7 @@ public final URL find(IPath path) {
232232
* @return a URL for the given path or <code>null</code>
233233
* @deprecated use {@link FileLocator#find(Bundle, IPath, Map)}
234234
*/
235-
@Deprecated
235+
@Deprecated(forRemoval = true, since = "2025-06 (removal in 2027-06 or later)")
236236
public final URL find(IPath path, Map<String,String> override) {
237237
return FileLocator.find(getBundle(), path, override);
238238
}
@@ -424,7 +424,7 @@ public final void savePluginPreferences() {
424424
* }
425425
* </pre>
426426
*/
427-
@Deprecated
427+
@Deprecated(forRemoval = true, since = "2025-06 (removal in 2027-06 or later)")
428428
protected void initializeDefaultPluginPreferences() {
429429
// default implementation of this method - spec'd to do nothing
430430
}
@@ -437,7 +437,7 @@ protected void initializeDefaultPluginPreferences() {
437437
* @since 3.0
438438
* @deprecated
439439
*/
440-
@Deprecated
440+
@Deprecated(forRemoval = true, since = "2025-06 (removal in 2027-06 or later)")
441441
public final void internalInitializeDefaultPluginPreferences() {
442442
initializeDefaultPluginPreferences();
443443
}
@@ -479,7 +479,7 @@ public boolean isDebugging() {
479479
* @see #openStream(IPath,boolean)
480480
* @deprecated use {@link FileLocator#openStream(Bundle, IPath, boolean)}
481481
*/
482-
@Deprecated
482+
@Deprecated(forRemoval = true, since = "2025-06 (removal in 2027-06 or later)")
483483
public final InputStream openStream(IPath file) throws IOException {
484484
return FileLocator.openStream(getBundle(), file, false);
485485
}
@@ -502,7 +502,7 @@ public final InputStream openStream(IPath file) throws IOException {
502502
* @exception IOException if the given path cannot be found in this plug-in
503503
* @deprecated use {@link FileLocator#openStream(Bundle, IPath, boolean)}
504504
*/
505-
@Deprecated
505+
@Deprecated(forRemoval = true, since = "2025-06 (removal in 2027-06 or later)")
506506
public final InputStream openStream(IPath file, boolean substituteArgs) throws IOException {
507507
return FileLocator.openStream(getBundle(), file, substituteArgs);
508508
}
@@ -576,7 +576,7 @@ private DebugOptions getDebugOptions() {
576576
*
577577
* @deprecated
578578
*/
579-
@Deprecated
579+
@Deprecated(forRemoval = true, since = "2025-06 (removal in 2027-06 or later)")
580580
public void shutdown() throws CoreException {
581581
// intentionally left empty
582582
}

0 commit comments

Comments
 (0)