Closed sczerwinski closed 3 years ago
In ObjFormattingModelBuilder
, change overridden createModel(...)
method:
override fun createModel(formattingContext: FormattingContext): FormattingModel =
FormattingModelProvider.createFormattingModelForPsiFile(
formattingContext.psiElement.containingFile,
ObjBlock(
node = formattingContext.psiElement.node,
spacingBuilder = createSpaceBuilder(formattingContext.codeStyleSettings)
),
formattingContext.codeStyleSettings
)
IconLoader.getIcon(String)
should be replaced with IconLoader.getIcon(String, Class)
, which specifies the class to be used to get a ClassLoader
.
Collection.max()
should be replaced with Collection.maxOrNull()
.
Changes to ObjFormattingModelBuilder
require platform version 2020.3
.
Building with platform version 2020.3
requires Java 11.
Also: PsiManager.addPsiTreeChangeListener(...)
Steps
Result
IntelliJ IDEA Ultimate IU-203.5600.34 Compatible. 1 usage of scheduled for removal API and 3 usages of deprecated API
FormattingModelBuilder.createModel(...)
(1) (scheduled for removal in 2021.1) Deprecated methodFormattingModelBuilder.createModel(...)
is overridden in classObjFormattingModelBuilder
. This method will be removed in 2021.1IconLoader.getIcon(String)
(2) Deprecated methodIconLoader.getIcon(String)
is invoked inWavefrontObjIcons.<clinit>()
Deprecated methodIconLoader.getIcon(String)
is invoked inObjIcons.<clinit>()
CollectionsKt___CollectionsKt.max(Iterable)
(1) Deprecated methodCollectionsKt___CollectionsKt.max(Iterable)
is invoked inGLModel.getSize()
Expected Result
Compatible
IDE Details
IntelliJ IDEA Ultimate IU-203.5600.34