Skip to content

throw UnsupportedOperationException vs null return#26

Merged
ctrueden merged 3 commits into
scijava:mainfrom
JaredDavis22:exceptionmessages
Jul 17, 2026
Merged

throw UnsupportedOperationException vs null return#26
ctrueden merged 3 commits into
scijava:mainfrom
JaredDavis22:exceptionmessages

Conversation

@JaredDavis22

Copy link
Copy Markdown
Contributor

Updated wording per comments from @ctrueden

JaredDavis22 and others added 3 commits July 17, 2026 13:48
And improve wording per discussion with @ctrueden.

Signed-off-by: Curtis Rueden <[email protected]>
* Put private methods with the rest of the helpers.
* Shorten the helper method names.
* Distinguish between unary and binary param type failures.
* Make type+value stringification logic more DRY.

Finally, remove the static keyword from the helper methods.
Yeah, they don't use any object instance state and can be
static, but it's an extra keyword that makes the code more
verbose, for not much concrete maintainability benefit.
@ctrueden
ctrueden force-pushed the exceptionmessages branch from 9efea3f to db96ba8 Compare July 17, 2026 20:37
@ctrueden
ctrueden merged commit 87d8fdf into scijava:main Jul 17, 2026
1 check passed
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