Skip to content

docs: document IllegalArgumentException on URL setters#9707

Merged
web-padawan merged 1 commit into
mainfrom
fix/credits-href-throws-doc
Jul 9, 2026
Merged

docs: document IllegalArgumentException on URL setters#9707
web-padawan merged 1 commit into
mainfrom
fix/credits-href-throws-doc

Conversation

@mcollovati

Copy link
Copy Markdown
Contributor

Add the missing @throws IllegalArgumentException doclet to Credits#setHref, SideNavItem#setPath and BreadcrumbsItem#setPath. These setters validate the URL scheme and throw, but the behavior was undocumented, unlike the other validating setters (e.g. Exporting#setUrl). Also add a @see reference to the matching setUnsafe* variant.

Add the missing `@throws IllegalArgumentException` doclet to Credits#setHref,
SideNavItem#setPath and BreadcrumbsItem#setPath. These setters validate the
URL scheme and throw, but the behavior was undocumented, unlike the other
validating setters (e.g. Exporting#setUrl). Also add a `@see` reference to the
matching setUnsafe* variant.
@sonarqubecloud

sonarqubecloud Bot commented Jul 9, 2026

Copy link
Copy Markdown

@web-padawan web-padawan added this pull request to the merge queue Jul 9, 2026
Merged via the queue into main with commit a4396ab Jul 9, 2026
19 checks passed
@web-padawan web-padawan deleted the fix/credits-href-throws-doc branch July 9, 2026 13:38
sissbruecker pushed a commit that referenced this pull request Jul 9, 2026
…5.2) (#9712)

This PR cherry-picks changes from the original PR #9707 to branch 25.2.
---
#### Original PR description
> Add the missing `@throws IllegalArgumentException` doclet to
Credits#setHref, SideNavItem#setPath and BreadcrumbsItem#setPath. These
setters validate the URL scheme and throw, but the behavior was
undocumented, unlike the other validating setters (e.g.
Exporting#setUrl). Also add a `@see` reference to the matching
setUnsafe* variant.
>

Co-authored-by: Marco Collovati <marco@vaadin.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants