mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 20:41:22 +07:00
Python: mark deprecated as to be remove
GitOrigin-RevId: dfb59057ae58c060b8d432a504be6d804aa9acec
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e32b6f4e00
commit
504e1208ef
@@ -46,7 +46,7 @@ import java.util.Map;
|
||||
*
|
||||
* @deprecated please use Kotlin coroutines to run processes in background
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public final class PySdkUtil {
|
||||
private static final Logger LOG = Logger.getInstance(PySdkUtil.class);
|
||||
|
||||
@@ -212,7 +212,7 @@ public final class PySdkUtil {
|
||||
* @deprecated doesn't support targets
|
||||
*/
|
||||
@ApiStatus.Internal
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public static @NotNull Map<String, String> activateVirtualEnv(@NotNull String sdkHome) {
|
||||
PyVirtualEnvReader reader = new PyVirtualEnvReader(sdkHome);
|
||||
if (reader.getActivate() != null) {
|
||||
|
||||
@@ -60,7 +60,7 @@ public class PythonSdkAdditionalData implements SdkAdditionalData {
|
||||
* @deprecated Use constructor with data. This ctor only supports flavours with empty data
|
||||
*/
|
||||
@SuppressWarnings({"rawtypes", "unchecked"})
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public PythonSdkAdditionalData(@Nullable PythonSdkFlavor<?> flavor) {
|
||||
this(flavor == null
|
||||
? PyFlavorAndData.getUNKNOWN_FLAVOR_DATA()
|
||||
|
||||
@@ -104,7 +104,7 @@ public abstract class PythonSdkFlavor<D extends PyFlavorData> {
|
||||
/**
|
||||
* @deprecated use {@link #suggestLocalHomePaths(Module, UserDataHolder)}
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public Collection<String> suggestHomePaths(final @Nullable Module module, final @Nullable UserDataHolder context) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
@@ -264,7 +264,7 @@ public abstract class PythonSdkFlavor<D extends PyFlavorData> {
|
||||
* if you do not have sdk yet, and you want to guess the flavor, use {@link #tryDetectFlavorByLocalPath(Path)}
|
||||
*/
|
||||
//No warning yet as there are usages: to be fixed
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
@RequiresBackgroundThread(generateAssertion = false)
|
||||
public static @Nullable PythonSdkFlavor<?> getFlavor(@Nullable String sdkPath) {
|
||||
if (sdkPath == null || PythonSdkUtil.isCustomPythonSdkHomePath(sdkPath)) return null;
|
||||
@@ -289,7 +289,7 @@ public abstract class PythonSdkFlavor<D extends PyFlavorData> {
|
||||
/**
|
||||
* @deprecated SDK path is not enough to get flavor, use {@link #getFlavor(Sdk)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(forRemoval = true)
|
||||
public static @Nullable PythonSdkFlavor<?> getPlatformIndependentFlavor(final @Nullable String sdkPath) {
|
||||
if (sdkPath == null) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user