SimpleListCellRenderer.create(String, Function) (1) (scheduled for removal in a future…
- User
SimpleListCellRenderer.create(String, Function) (1) (scheduled for removal in a future release)
Assistant
Now compiling to verify.
Assistant
Fixed.
ProjectFileGroupDialog.kt:239now uses the replacement the deprecation javadoc points to.The source you linked confirms both
SimpleListCellRenderer.createoverloads are@Deprecated(forRemoval = true)— so swapping to theCustomizeroverload (my first attempt) would have just traded one removal warning for another. The actual replacement iscom.intellij.ui.dsl.listCellRenderer.textListCellRenderer(nullValue, getText), which is a drop-in for thecreate(String, Function)shape and additionally supports rounded selection (the limitation the javadoc calls out).Verified against the targeted platform:
textListCellRendereris present inlib/intellij.platform.ide.jarof Android Studio 2026.1.3.7, so it's available atpluginSinceBuild = 261.code./gradlew compileKotlin --rerun-tasks → BUILD SUCCESSFULThe deprecation warning is gone. One unrelated pre-existing warning remains, untouched:
ProjectFileGroupNode.kt:23shadows the Java fieldmyProject.- User
after update submit a PR
Assistant
PR opened: https://github.com/z8dn/advanced-android-project-view/pull/69
- Branch
refactor/replace-deprecated-list-cell-rendereroffmain, one commit, one file (ProjectFileGroupDialog.kt). - Only the renderer change is committed — the untracked cruft in your working tree (
.DS_Store,.entire/,.idea/*,.junie/) was left alone.
One thing I did not touch, since you flagged it as possibly unrelated: the
jewelStandaloneline ingradle/libs.versions.tomllives in a different worktree (advanced-android-project-view-bump-intellij-platform-plugin, on branchfix/i18n-hardcoded-strings). If that's a separate change you want in this PR or its own, say the word.- Branch
- User
it actually fail verifyPlugin CI
Assistant
The recommended replacement is itself
@ApiStatus.Internal. Let me check what's actually public.Assistant
Compiles clean. Now running the check that actually failed: