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

This commit is contained in:
Rob Bygrave
2021-10-19 12:12:11 +13:00
parent 5a4924b6cb
commit 709eb369c9
2 changed files with 2 additions and 0 deletions
@@ -2302,6 +2302,7 @@ public final class DefaultServer implements SpiServer, SpiEbeanServer {
/**
* Returns a set of properties if saving the bean will violate the unique constraints (defined by given properties).
*/
@Nullable
private Set<Property> checkUniqueness(EntityBean entityBean, BeanDescriptor<?> beanDesc, BeanProperty[] props, Transaction transaction) {
BeanProperty idProperty = beanDesc.idProperty();
Query<?> query = new DefaultOrmQuery<>(beanDesc, this, expressionFactory);