Avoid returning `null`. Prefer `Optional`
Open
bug
enhancement
- Dominant language
- Java
- Stars
- 37
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
In situations where a value might not exist, generally preferable to return values wrapped with a Java `Optional<>` rather than a `null`. It's more self documenting, and generally easier to deal with logic to handle situations where values might be missing.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.