Skip to content

refactor(facet): replace deprecated CheckboxTreeBase constructor with explicit CheckPolicy#69

Open
lukaszlenart wants to merge 1 commit intomainfrom
refactor/fix-checkbox-tree-deprecation
Open

refactor(facet): replace deprecated CheckboxTreeBase constructor with explicit CheckPolicy#69
lukaszlenart wants to merge 1 commit intomainfrom
refactor/fix-checkbox-tree-deprecation

Conversation

@lukaszlenart
Copy link
Copy Markdown
Member

Summary

  • Replace the deprecated 2-arg CheckboxTreeBase(renderer, root) constructor in StrutsFilesTree with the non-deprecated 3-arg form that accepts an explicit CheckPolicy
  • The explicit policy values (true, true, false, true) exactly replicate the platform's previous implicit default, so checkbox propagation behavior in the facet file-set editor is unchanged
  • Remove the @SuppressWarnings("deprecation") annotation that is no longer needed

Context

The CheckboxTreeBase(renderer, root) constructor was deprecated in IntelliJ Platform 2026.1 because it hides the check-propagation policy behind an internal default. The non-deprecated 3-arg constructor requires callers to specify a CheckPolicy explicitly.

Default values were confirmed by decompiling the 261 SDK's CheckboxTreeHelper.DEFAULT_POLICY:

  • checkChildrenWithCheckedParent = true
  • uncheckChildrenWithUncheckedParent = true
  • checkParentWithCheckedChild = false
  • uncheckParentWithUncheckedChild = true

Test plan

  • ./gradlew compileJava succeeds with no new deprecation warnings
  • ./gradlew test -x rat passes (all existing tests green)

Made with Cursor

… explicit CheckPolicy

The 2-arg CheckboxTreeBase(renderer, root) constructor is deprecated in
IntelliJ Platform 2026.1 because it relies on an implicit default check
policy. Replace it with the non-deprecated 3-arg form that takes an
explicit CheckPolicy matching the previous default behavior
(checkChildren=true, uncheckChildren=true, checkParent=false,
uncheckParent=true).

Made-with: Cursor
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 5, 2026

🔌 Plugin artifact ready for testing!

Download from Actions artifacts

Artifact: struts2-261.18970.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant