Skip to content

Commit 343d010

Browse files
EcljpseB0Tjukzi
authored andcommitted
Add "forRemoval" @ "This API will be deleted in a future release"
and no references in workspace
1 parent a8f5ea3 commit 343d010

File tree

2 files changed

+13
-12
lines changed
  • runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime
  • update/org.eclipse.update.configurator/src/org/eclipse/update/configurator

2 files changed

+13
-12
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ public static void addLogListener(ILogListener listener) {
609609
* for data access and modifications.
610610
* This API will be deleted in a future release. See bug 370248 for details.
611611
*/
612-
@Deprecated
612+
@Deprecated(forRemoval = true, since = "2024-03")
613613
public static void addProtectionSpace(URL resourceUrl, String realm) throws CoreException {
614614
AuthorizationHandler.addProtectionSpace(resourceUrl, realm);
615615
}

update/org.eclipse.update.configurator/src/org/eclipse/update/configurator/ConfiguratorUtils.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,20 @@
77
* https://www.eclipse.org/legal/epl-2.0/
88
*
99
* SPDX-License-Identifier: EPL-2.0
10-
*
10+
*
1111
* Contributors:
1212
* IBM Corporation - initial API and implementation
1313
*******************************************************************************/
1414

1515
package org.eclipse.update.configurator;
1616

17-
import java.io.*;
18-
import java.net.*;
17+
import java.io.IOException;
18+
import java.net.URL;
1919

2020
import org.eclipse.update.internal.configurator.ConfigurationActivator;
2121
import org.eclipse.update.internal.configurator.Utils;
22-
import org.osgi.framework.*;
22+
import org.osgi.framework.BundleContext;
23+
import org.osgi.framework.ServiceReference;
2324

2425
/**
2526
* Helper class to get platform configuration data without having to
@@ -34,12 +35,12 @@
3435
* @deprecated The org.eclipse.update component has been replaced by Equinox p2.
3536
* This API will be deleted in a future release. See bug 311590 for details.
3637
*/
37-
@Deprecated
38+
@Deprecated(forRemoval = true, since = "2024-03")
3839
public class ConfiguratorUtils {
3940
/**
4041
* Returns the current platform configuration. This method replaces the one we used
4142
* to call on BootLoader.
42-
*
43+
*
4344
* @return platform configuration used in current instance of platform
4445
* @since 3.0
4546
*/
@@ -57,11 +58,11 @@ public static IPlatformConfiguration getCurrentPlatformConfiguration() {
5758
context.ungetService(configFactorySR);
5859
return currentConfig;
5960
}
60-
61+
6162
/**
6263
* Returns a platform configuration object, optionally initialized with previously saved
6364
* configuration information. We will use this method instead of the old one in BootLoader.
64-
*
65+
*
6566
* @param url location of previously save configuration information. If <code>null</code>
6667
* is specified, an empty configuration object is returned
6768
* @return platform configuration used in current instance of platform
@@ -80,11 +81,11 @@ public static IPlatformConfiguration getPlatformConfiguration(URL url) throws IO
8081
context.ungetService(configFactorySR);
8182
return config;
8283
}
83-
84+
8485
/**
8586
* Returns a platform configuration object, optionally initialized with previously saved
8687
* configuration information. We will use this method instead of the old one in BootLoader.
87-
*
88+
*
8889
* @param url location of previously save configuration information. If <code>null</code>
8990
* is specified, an empty configuration object is returned
9091
* @param loc location of the platform installation. Used to resolve entries in the save location
@@ -104,7 +105,7 @@ public static IPlatformConfiguration getPlatformConfiguration(URL url, URL loc)
104105
context.ungetService(configFactorySR);
105106
return config;
106107
}
107-
108+
108109
/**
109110
* @return the URL of this eclispe installation
110111
*/

0 commit comments

Comments
 (0)