From 343d01015d752fa6d4a79f4aaa69b3b03658ce6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Kubitz?= Date: Thu, 15 Feb 2024 15:02:52 +0100 Subject: [PATCH] Add "forRemoval" @ "This API will be deleted in a future release" and no references in workspace --- .../org/eclipse/core/runtime/Platform.java | 2 +- .../configurator/ConfiguratorUtils.java | 23 ++++++++++--------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java b/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java index 91272b6dd24..5c8a0488b1d 100644 --- a/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java +++ b/runtime/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java @@ -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); } diff --git a/update/org.eclipse.update.configurator/src/org/eclipse/update/configurator/ConfiguratorUtils.java b/update/org.eclipse.update.configurator/src/org/eclipse/update/configurator/ConfiguratorUtils.java index 9a27056095b..4d72cb86130 100644 --- a/update/org.eclipse.update.configurator/src/org/eclipse/update/configurator/ConfiguratorUtils.java +++ b/update/org.eclipse.update.configurator/src/org/eclipse/update/configurator/ConfiguratorUtils.java @@ -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 @@ -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 */ @@ -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 null * is specified, an empty configuration object is returned * @return platform configuration used in current instance of platform @@ -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 null * is specified, an empty configuration object is returned * @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) context.ungetService(configFactorySR); return config; } - + /** * @return the URL of this eclispe installation */