Skip to content

Commit

Permalink
Add "forRemoval" @ "This API will be deleted in a future release"
Browse files Browse the repository at this point in the history
and no references in workspace
  • Loading branch information
EcljpseB0T authored and jukzi committed Feb 15, 2024
1 parent a8f5ea3 commit 343d010
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ public static void addLogListener(ILogListener listener) {
* for data access and modifications.
* This API will be deleted in a future release. See bug 370248 for details.
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-03")
public static void addProtectionSpace(URL resourceUrl, String realm) throws CoreException {
AuthorizationHandler.addProtectionSpace(resourceUrl, realm);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/

package org.eclipse.update.configurator;

import java.io.*;
import java.net.*;
import java.io.IOException;
import java.net.URL;

import org.eclipse.update.internal.configurator.ConfigurationActivator;
import org.eclipse.update.internal.configurator.Utils;
import org.osgi.framework.*;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;

/**
* Helper class to get platform configuration data without having to
Expand All @@ -34,12 +35,12 @@
* @deprecated The org.eclipse.update component has been replaced by Equinox p2.
* This API will be deleted in a future release. See bug 311590 for details.
*/
@Deprecated
@Deprecated(forRemoval = true, since = "2024-03")
public class ConfiguratorUtils {
/**
* Returns the current platform configuration. This method replaces the one we used
* to call on BootLoader.
*
*
* @return platform configuration used in current instance of platform
* @since 3.0
*/
Expand All @@ -57,11 +58,11 @@ public static IPlatformConfiguration getCurrentPlatformConfiguration() {
context.ungetService(configFactorySR);
return currentConfig;
}

/**
* Returns a platform configuration object, optionally initialized with previously saved
* configuration information. We will use this method instead of the old one in BootLoader.
*
*
* @param url location of previously save configuration information. If <code>null</code>
* is specified, an empty configuration object is returned
* @return platform configuration used in current instance of platform
Expand All @@ -80,11 +81,11 @@ public static IPlatformConfiguration getPlatformConfiguration(URL url) throws IO
context.ungetService(configFactorySR);
return config;
}

/**
* Returns a platform configuration object, optionally initialized with previously saved
* configuration information. We will use this method instead of the old one in BootLoader.
*
*
* @param url location of previously save configuration information. If <code>null</code>
* is specified, an empty configuration object is returned
* @param loc location of the platform installation. Used to resolve entries in the save location
Expand All @@ -104,7 +105,7 @@ public static IPlatformConfiguration getPlatformConfiguration(URL url, URL loc)
context.ungetService(configFactorySR);
return config;
}

/**
* @return the URL of this eclispe installation
*/
Expand Down

0 comments on commit 343d010

Please sign in to comment.