Skip to content

Remove dead andFilters concept from Problems view filter#3861

Merged
vogella merged 1 commit intoeclipse-platform:masterfrom
vogella:remove-dead-andfilters
Apr 8, 2026
Merged

Remove dead andFilters concept from Problems view filter#3861
vogella merged 1 commit intoeclipse-platform:masterfrom
vogella:remove-dead-andfilters

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented Apr 3, 2026

The andFilters boolean in FiltersConfigurationDialog was always hardcoded to false — no UI control ever set it to true. This removes the dead AND-filter logic that was never reachable.

Changes

  • Remove andFilters field, getter, and setter from FiltersConfigurationDialog and MarkerContentGenerator
  • Remove TAG_AND persistence (read/write) from MarkerContentGenerator
  • Simplify select() method to always use OR logic (the only active code path)
  • Remove unused getResourcesFiltersAnded() from MarkerResourceUtil
  • Simplify computeResources() to always use OR resource computation
  • Update ExtendedMarkersView.openFiltersDialog() call signature
  • Update MarkerSupportViewTest reflection calls to match new signatures
  • Clean up Javadoc referencing AND filter behavior

Testing

  • Verified compilation succeeds with mvn clean compile -pl :org.eclipse.ui.ide -Pbuild-individual-bundles
  • Since andFilters was always false, this is a pure dead-code removal with no behavioral change

The andFilters boolean was always hardcoded to false with no UI to change
it. This removes the dead AND-filter logic that was never reachable:

- Remove andFilters field, getter, and setter from FiltersConfigurationDialog
  and MarkerContentGenerator
- Remove TAG_AND persistence (read/write) from MarkerContentGenerator
- Simplify select() method to always use OR logic (the only active path)
- Remove unused getResourcesFiltersAnded() from MarkerResourceUtil
- Simplify computeResources() to always use OR resource computation
- Update ExtendedMarkersView.openFiltersDialog() call signature
- Update MarkerSupportViewTest reflection calls to match new signature
- Clean up Javadoc referencing AND filter behavior

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

Test Results

   852 files  ±0     852 suites  ±0   53m 22s ⏱️ - 3m 39s
 7 890 tests ±0   7 647 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 172 runs  ±0  19 517 ✅ ±0  655 💤 ±0  0 ❌ ±0 

Results for commit cb318ee. ± Comparison against base commit ed75400.

@vogella vogella marked this pull request as ready for review April 7, 2026 06:00
@vogella vogella merged commit 6de4edc into eclipse-platform:master Apr 8, 2026
18 checks passed
@vogella vogella deleted the remove-dead-andfilters branch April 8, 2026 07:16
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