Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Optional instead of @Nullable when loading entities #255

Closed
alexander-yevsyukov opened this issue Jan 5, 2017 · 1 comment
Closed

Comments

@alexander-yevsyukov
Copy link
Contributor

Repository.load() now returns @Nullable, and then some overriding classes apply @Nonnull, which is a violation of contract defined by the parent class.

Let's use Guava's Optional (and then Java8's in v2) instead.

@alexander-yevsyukov
Copy link
Contributor Author

Fixed by #258

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant