#2419 - Add explicit @Nullable on findOne() methods

This commit is contained in:
Rob Bygrave
2021-10-19 11:50:22 +13:00
parent fa252a1fe4
commit 7862648b83
4 changed files with 11 additions and 2 deletions
@@ -97,7 +97,6 @@ public abstract class BeanFinder<I,T> {
/**
* Find an entity by ID returning an Optional.
*/
@Nullable
public Optional<T> findByIdOrEmpty(I id) {
return db().find(type).setId(id).findOneOrEmpty();
}