intellij-sdk-code-samples/reference_guide/api_changes_list_2021.md
Nikita Bobko 18881b5b09
Add API breaks in 2021 (#351)
Add API breaks in 2021 caused by 0c30c2aed9
2021-02-11 12:08:44 +01:00

6.5 KiB

Please see Incompatible API Changes on how to verify compatibility.

Changes from API marked with org.jetbrains.annotations.ApiStatus.@Experimental/ScheduledForRemoval are not listed here, as incompatible changes are to be expected.

{type="note"}

2021.1

Changes in IntelliJ Platform 2021.1

com.intellij.util.io.PersistentHashMap.isCorrupted method removed
The storage checks for corruption automatically, there is no need of any explicit additional checks.
com.intellij.lang.StdLanguages.JSPX field removed
Add a dependency on the com.intellij.jsp plugin and replace the reference with com.intellij.lang.jspx.JspxLanguageImpl.INSTANCE
com.intellij.lang.StdLanguages.JSP field removed
Add a dependency on the com.intellij.jsp plugin and replace the reference with com.intellij.lang.jsp.NewJspLanguage.getInstance()
com.intellij.ide.actions.searcheverywhere.SEResultsEqualityProvider.compareItems(alreadyFoundItem) method parameter type changed from SearchEverywhereFoundElementInfo to List<SearchEverywhereFoundElementInfo>
New API is more abstract which allows to review all already found items before making "deduplication" decision. Also consider implementing com.intellij.ide.actions.searcheverywhere.AbstractEqualityProvider instead of com.intellij.ide.actions.searcheverywhere.SEResultsEqualityProvider.
com.intellij.ide.actions.searcheverywhere.SEResultsEqualityProvider.SEEqualElementsActionType.SKIP field removed
Enum class SEEqualElementsActionType was converted to sealed class with the same name.
com.intellij.ide.actions.searcheverywhere.SEResultsEqualityProvider.SEEqualElementsActionType.DO_NOTHING field removed
Enum class SEEqualElementsActionType was converted to sealed class with the same name.
com.intellij.ide.actions.searcheverywhere.SEResultsEqualityProvider.SEEqualElementsActionType.Replace field removed
Enum class SEEqualElementsActionType was converted to sealed class with the same name.
org.sqlite.SQLiteConfig.setBusyTimeout(String) method parameter type changed from String to int
Please use updated sqlite-jdbc api.
com.intellij.usages.impl.rules.UsageTypeProvider.getUsageType method PsiElement parameter marked @NotNull
This may break source-compatibility with inheritors written in Kotlin if they declare parameter type as nullable.
com.jetbrains.performancePlugin.CommandProvider.getCommands(Project) method parameter Project removed
Project is now only accessible via com.intellij.openapi.ui.playback.PlaybackContext.getProject() since it may change during script execution.