Skip to content

Commit 9ee38b5

Browse files
committed
Adds forRemoval to long deprecated methods in Platform
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.
1 parent cf303ed commit 9ee38b5

File tree

1 file changed

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

1 file changed

+21
-21
lines changed

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

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public static boolean isMac() {
272272
* @since 3.0
273273
* @deprecated not supported anymore
274274
*/
275-
@Deprecated
275+
@Deprecated(forRemoval = true, since = "2025-03")
276276
public static final String OS_AIX = "aix";//$NON-NLS-1$
277277

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

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

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

323323
/**
@@ -355,7 +355,7 @@ public static boolean isMac() {
355355
* @since 3.0
356356
* @deprecated not supported anymore
357357
*/
358-
@Deprecated
358+
@Deprecated(forRemoval = true, since = "2025-03")
359359
public static final String ARCH_X86 = "x86";//$NON-NLS-1$
360360

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

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

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

406406
/**
@@ -455,7 +455,7 @@ public static boolean isMac() {
455455
*
456456
* @deprecated not supported anymore
457457
*/
458-
@Deprecated
458+
@Deprecated(forRemoval = true, since = "2025-03")
459459
public static final String ARCH_IA64 = "ia64"; //$NON-NLS-1$
460460

461461
/**
@@ -493,7 +493,7 @@ public static boolean isMac() {
493493
*
494494
* @deprecated not supported anymore
495495
*/
496-
@Deprecated
496+
@Deprecated(forRemoval = true, since = "2025-03")
497497
public static final String WS_MOTIF = "motif";//$NON-NLS-1$
498498

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

525525
/**
@@ -534,7 +534,7 @@ public static boolean isMac() {
534534
*
535535
* @since 3.0
536536
*/
537-
@Deprecated
537+
@Deprecated(forRemoval = true, since = "2025-03")
538538
public static final String WS_CARBON = "carbon";//$NON-NLS-1$
539539

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

558558
/**
@@ -671,7 +671,7 @@ public static void addProtectionSpace(URL resourceUrl, String realm) throws Core
671671
* @see Bundle#getEntry(String)
672672
* @deprecated use {@link FileLocator#toFileURL(URL)} instead
673673
*/
674-
@Deprecated
674+
@Deprecated(forRemoval = true, since = "2025-03")
675675
public static URL asLocalURL(URL url) throws IOException {
676676
return FileLocator.toFileURL(url);
677677
}
@@ -680,7 +680,7 @@ public static URL asLocalURL(URL url) throws IOException {
680680
* Takes down the splash screen if one was put up.
681681
* @deprecated use {@link IApplicationContext#applicationRunning()} instead
682682
*/
683-
@Deprecated
683+
@Deprecated(forRemoval = true, since = "2025-03")
684684
public static void endSplash() {
685685
InternalPlatform.getDefault().endSplash();
686686
}
@@ -810,7 +810,7 @@ public static IPath getLogFileLocation() {
810810
* As the org.eclipse.core.runtime.compatibility plug-in has been removed in
811811
* Eclipse 4.6 this method is not supported anymore.
812812
*/
813-
@Deprecated
813+
@Deprecated(forRemoval = true, since = "2025-03")
814814
public static Plugin getPlugin(String id) {
815815
return null;
816816
}
@@ -851,7 +851,7 @@ public static void removeLogListener(ILogListener listener) {
851851
* @see Bundle#getEntry(String)
852852
* @deprecated use {@link FileLocator#resolve(URL)} instead
853853
*/
854-
@Deprecated
854+
@Deprecated(forRemoval = true, since = "2025-03")
855855
public static URL resolve(URL url) throws IOException {
856856
return FileLocator.resolve(url);
857857
}
@@ -864,7 +864,7 @@ public static URL resolve(URL url) throws IOException {
864864
* @param runnable the runnable to run
865865
* @deprecated clients should use <code>SafeRunner#run</code> instead
866866
*/
867-
@Deprecated
867+
@Deprecated(forRemoval = true, since = "2025-03")
868868
public static void run(ISafeRunnable runnable) {
869869
SafeRunner.run(runnable);
870870
}
@@ -897,7 +897,7 @@ public static IExtensionRegistry getExtensionRegistry() {
897897
* @since 3.0
898898
* @deprecated use {@link FileLocator#find(Bundle, IPath)}
899899
*/
900-
@Deprecated
900+
@Deprecated(forRemoval = true, since = "2025-03")
901901
public static URL find(Bundle bundle, IPath path) {
902902
return FileLocator.find(bundle, path);
903903
}
@@ -959,7 +959,7 @@ public static URL find(Bundle bundle, IPath path) {
959959
* @since 3.0
960960
* @deprecated use {@link FileLocator#find(Bundle, IPath, Map)} instead
961961
*/
962-
@Deprecated
962+
@Deprecated(forRemoval = true, since = "2025-03")
963963
public static URL find(Bundle bundle, IPath path, Map<String,String> override) {
964964
return FileLocator.find(bundle, path, override);
965965
}
@@ -1219,7 +1219,7 @@ public static String[] getApplicationArgs() {
12191219
* clients, see javadoc for details.
12201220
* @since 3.0
12211221
*/
1222-
@Deprecated(forRemoval = true)
1222+
@Deprecated(forRemoval = true, since = "2024-03") // 2024-03 was added later for information purposes
12231223
public static PlatformAdmin getPlatformAdmin() {
12241224
return InternalPlatform.getDefault().getPlatformAdmin();
12251225
}

0 commit comments

Comments
 (0)