Closed WangJi92 closed 7 months ago
Deprecated class ProjectTaskResult is referenced in ClassCompileCompatibleUtils$1.finished(...). This class will be removed in a future release
Deprecated field PsiType.BOOLEAN is accessed in OgnlPsUtils.getDefaultString(PsiType, Project). This field will be removed in a future release
Deprecated class ServiceManager is referenced in AppSettingsState.getInstance(Project)
IDE restart may be unnecessary to enable or disable arthas idea 2.44 because the plugin satisfies the requirements for dynamic plugins. Yet the unloading may be restricted if the plugin's class loader cannot be unloaded dynamically or if the plugin has complex dependencies. Please check manually that the IDE allows to install and uninstall arthas idea 2.44 without restart. Feel free to issue a corresponding ticket in YouTrack.
Deprecated field PsiType.BOOLEAN is accessed in OgnlPsUtils.getDefaultString(PsiType, Project). This field will be removed in a future release
PsiType.BOOLEAN boolean PsiType.LONG long PsiType.DOUBLE double PsiType.FLOAT float PsiType.INT boolean PsiType.BYTE byte PsiType.SHORT short
if ("boolean".equals(canonicalText)) {
result = "true";
return result;
}
ServiceManager
是的,IntelliJ IDEA已经把com.intellij.openapi.components.ServiceManager#getService(com.intellij.openapi.project.Project, java.lang.Class
以下是如何替换你的代码:
原来的方法(已弃用):
MyService myService = ServiceManager.getService(MyService.class); 新的方法:
MyService myService = project.getService(MyService.class); 这样就可以替换过时的ServiceManager#getService方法,让你的代码更符合更新版本的IntelliJ IDEA。
Deprecated interface ProjectTaskNotification is referenced in ClassCompileCompatibleUtils.lambda$compile$0(...). This interface will be removed in a future release Deprecated interface ProjectTaskNotification is referenced in ClassCompileCompatibleUtils$1. This interface will be removed in a future release