Skip to content

docs: document TreeGrid.getDataProvider without list/lazy views - #10280

Merged
sissbruecker merged 1 commit into
mainfrom
docs/treegrid-getdataprovider
Sep 29, 2026
Merged

sissbruecker merged 1 commit into
mainfrom
docs/treegrid-getdataprovider

Conversation

@sissbruecker

Copy link
Copy Markdown
Member

Description

Fixes vaadin/flow#19376
Extracted from to #10029

Contributed by @AzazelSensei

  • Added javadoc to TreeGrid.getDataProvider() that describes the hierarchical data provider
    • Before, TreeGrid inherited the javadoc from Grid.getDataProvider(). That javadoc points to getListDataView() and getLazyDataView(), which throw UnsupportedOperationException on TreeGrid
  • Documented that the method returns null when the current data provider is not hierarchical

Type of change

  • Documentation

🤖 Generated with Claude Code

@vaadin-review-bot vaadin-review-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the changes — left 1 comment.

Finding
📝 Documents a null return that cannot happen, weakening the public contract

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sissbruecker
sissbruecker force-pushed the docs/treegrid-getdataprovider branch from 86b1200 to 3854d28 Compare September 29, 2026 10:47
@sonarqubecloud

Copy link
Copy Markdown

@sissbruecker
sissbruecker added this pull request to the merge queue Sep 29, 2026
Merged via the queue into main with commit 5a945bd Sep 29, 2026
23 checks passed
@sissbruecker
sissbruecker deleted the docs/treegrid-getdataprovider branch September 29, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants