Skip to content

Commit

Permalink
Adds forRemoval to long deprecated methods in Platform
Browse files Browse the repository at this point in the history
Mark long time deprecated constants and methods for removal so that we
have the option to remove them after the deprecation period ends.

This is planned to be merged beginning of the 2025-03 release.
  • Loading branch information
vogella committed Nov 28, 2024
1 parent cf303ed commit 9ee38b5
Showing 1 changed file with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public static boolean isMac() {
* @since 3.0
* @deprecated not supported anymore
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static final String OS_AIX = "aix";//$NON-NLS-1$

/**
Expand All @@ -287,7 +287,7 @@ public static boolean isMac() {
*
* @deprecated not supported anymore
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static final String OS_SOLARIS = "solaris";//$NON-NLS-1$

/**
Expand All @@ -302,7 +302,7 @@ public static boolean isMac() {
*
* @deprecated not supported anymore
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static final String OS_HPUX = "hpux";//$NON-NLS-1$

/**
Expand All @@ -317,7 +317,7 @@ public static boolean isMac() {
*
* @deprecated not supported anymore
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static final String OS_QNX = "qnx";//$NON-NLS-1$

/**
Expand Down Expand Up @@ -355,7 +355,7 @@ public static boolean isMac() {
* @since 3.0
* @deprecated not supported anymore
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static final String ARCH_X86 = "x86";//$NON-NLS-1$

/**
Expand All @@ -370,7 +370,7 @@ public static boolean isMac() {
*
* @deprecated not supported anymore
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static final String ARCH_PA_RISC = "PA_RISC";//$NON-NLS-1$

/**
Expand All @@ -385,7 +385,7 @@ public static boolean isMac() {
*
* @deprecated not supported anymore
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static final String ARCH_PPC = "ppc";//$NON-NLS-1$

/**
Expand All @@ -400,7 +400,7 @@ public static boolean isMac() {
*
* @deprecated not supported anymore
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static final String ARCH_SPARC = "sparc";//$NON-NLS-1$

/**
Expand Down Expand Up @@ -455,7 +455,7 @@ public static boolean isMac() {
*
* @deprecated not supported anymore
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static final String ARCH_IA64 = "ia64"; //$NON-NLS-1$

/**
Expand Down Expand Up @@ -493,7 +493,7 @@ public static boolean isMac() {
*
* @deprecated not supported anymore
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static final String WS_MOTIF = "motif";//$NON-NLS-1$

/**
Expand All @@ -519,7 +519,7 @@ public static boolean isMac() {
* @since 3.0
* @deprecated not supported anymore
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static final String WS_PHOTON = "photon";//$NON-NLS-1$

/**
Expand All @@ -534,7 +534,7 @@ public static boolean isMac() {
*
* @since 3.0
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static final String WS_CARBON = "carbon";//$NON-NLS-1$

/**
Expand All @@ -552,7 +552,7 @@ public static boolean isMac() {
* @since 3.3
* @deprecated not supported anymore
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static final String WS_WPF = "wpf";//$NON-NLS-1$

/**
Expand Down Expand Up @@ -671,7 +671,7 @@ public static void addProtectionSpace(URL resourceUrl, String realm) throws Core
* @see Bundle#getEntry(String)
* @deprecated use {@link FileLocator#toFileURL(URL)} instead
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static URL asLocalURL(URL url) throws IOException {
return FileLocator.toFileURL(url);
}
Expand All @@ -680,7 +680,7 @@ public static URL asLocalURL(URL url) throws IOException {
* Takes down the splash screen if one was put up.
* @deprecated use {@link IApplicationContext#applicationRunning()} instead
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static void endSplash() {
InternalPlatform.getDefault().endSplash();
}
Expand Down Expand Up @@ -810,7 +810,7 @@ public static IPath getLogFileLocation() {
* As the org.eclipse.core.runtime.compatibility plug-in has been removed in
* Eclipse 4.6 this method is not supported anymore.
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static Plugin getPlugin(String id) {
return null;
}
Expand Down Expand Up @@ -851,7 +851,7 @@ public static void removeLogListener(ILogListener listener) {
* @see Bundle#getEntry(String)
* @deprecated use {@link FileLocator#resolve(URL)} instead
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static URL resolve(URL url) throws IOException {
return FileLocator.resolve(url);
}
Expand All @@ -864,7 +864,7 @@ public static URL resolve(URL url) throws IOException {
* @param runnable the runnable to run
* @deprecated clients should use <code>SafeRunner#run</code> instead
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static void run(ISafeRunnable runnable) {
SafeRunner.run(runnable);
}
Expand Down Expand Up @@ -897,7 +897,7 @@ public static IExtensionRegistry getExtensionRegistry() {
* @since 3.0
* @deprecated use {@link FileLocator#find(Bundle, IPath)}
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static URL find(Bundle bundle, IPath path) {
return FileLocator.find(bundle, path);
}
Expand Down Expand Up @@ -959,7 +959,7 @@ public static URL find(Bundle bundle, IPath path) {
* @since 3.0
* @deprecated use {@link FileLocator#find(Bundle, IPath, Map)} instead
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2025-03")
public static URL find(Bundle bundle, IPath path, Map<String,String> override) {
return FileLocator.find(bundle, path, override);
}
Expand Down Expand Up @@ -1219,7 +1219,7 @@ public static String[] getApplicationArgs() {
* clients, see javadoc for details.
* @since 3.0
*/
@Deprecated(forRemoval = true)
@Deprecated(forRemoval = true, since = "2024-03") // 2024-03 was added later for information purposes
public static PlatformAdmin getPlatformAdmin() {
return InternalPlatform.getDefault().getPlatformAdmin();
}
Expand Down

0 comments on commit 9ee38b5

Please sign in to comment.