Skip to content

Add parseNameOrThrow()#46

Merged
robzienert merged 3 commits intoNetflix:masterfrom
samuelrm:parse-name-or-throw
Jun 26, 2025
Merged

Add parseNameOrThrow()#46
robzienert merged 3 commits intoNetflix:masterfrom
samuelrm:parse-name-or-throw

Conversation

@samuelrm
Copy link
Copy Markdown
Contributor

We call Names.parseName() in many places and assume the result is an object with a valid app. In most if not all of these places we'd rather just propagate up an IllegalArgumentException.

To avoid breaking users depending on the existing behavior of this API I created a different method.

samuelrm and others added 2 commits June 26, 2025 19:08
Co-authored-by: Rob Zienert <rob@robzienert.com>
@robzienert robzienert merged commit 00e4622 into Netflix:master Jun 26, 2025
1 check passed
@samuelrm samuelrm deleted the parse-name-or-throw branch June 26, 2025 23: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.

2 participants