[core-api] fix deprecation problems

GitOrigin-RevId: d3a4a73a13ad7024956ffd1ffa5b69b64cfe8e2e
This commit is contained in:
Yann Cébron
2019-07-03 18:50:15 +03:00
committed by intellij-monorepo-bot
parent 3c636e8181
commit 86847abcec
3 changed files with 15 additions and 8 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2015 JetBrains s.r.o.
* Copyright 2000-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,6 +15,9 @@
*/
package com.intellij.openapi.project;
/**
* @deprecated obsolete API
*/
@Deprecated
public enum DumbModePermission {
MAY_START_MODAL,
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2016 JetBrains s.r.o.
* Copyright 2000-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,8 +24,11 @@ import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public class ProjectCoreUtil {
/**
* @deprecated for internal use only, see {@link #theOnlyOpenProject()}
*/
@Deprecated
@ApiStatus.Internal
public static volatile Project theProject;
@@ -42,8 +45,9 @@ public class ProjectCoreUtil {
/**
* For internal usage only.
* Please use {@link com.intellij.psi.PsiElement#getProject()} or {@link com.intellij.openapi.project.ProjectManager#getOpenProjects()} instead.
* @return the only open project if there is one, null if no projects open, or several projects are open, or default project is created
*
* @return the only open project if there is one, {@code null} if no projects open, or several projects are open, or default project is created
* @deprecated Please use {@link com.intellij.psi.PsiElement#getProject()} or {@link com.intellij.openapi.project.ProjectManager#getOpenProjects()} instead.
*/
@Deprecated
@ApiStatus.Internal
@@ -46,7 +46,7 @@ public interface PlatformIcons {
Icon ASPECT_ICON = AllIcons.Nodes.Aspect;
/**
* @deprecated {@link AllIcons.Nodes#Tag}
* @deprecated use {@link AllIcons.Nodes#Tag}
*/
@Deprecated
Icon ADVICE_ICON = AllIcons.Nodes.Tag;
@@ -106,13 +106,13 @@ public interface PlatformIcons {
Icon IMPORT_ICON = AllIcons.ToolbarDecorator.Import;
/**
* @use {@link #FOLDER_ICON}
* @deprecated use {@link #FOLDER_ICON}
*/
@Deprecated
Icon DIRECTORY_CLOSED_ICON = FOLDER_ICON;
/**
* @use {@link #FOLDER_ICON}
* @deprecated use {@link #FOLDER_ICON}
*/
@Deprecated
Icon DIRECTORY_OPEN_ICON = FOLDER_ICON;