Polishing

This commit is contained in:
Sam Brannen
2023-07-15 12:53:12 +02:00
parent 8629182822
commit e6d360c1c6
11 changed files with 82 additions and 62 deletions

View File

@@ -33,7 +33,8 @@ import org.springframework.util.NumberUtils;
/**
* Miscellaneous utility methods for DAO implementations.
* Useful with any data access technology.
*
* <p>Useful with any data access technology.
*
* @author Juergen Hoeller
* @since 1.0.2
@@ -80,7 +81,7 @@ public abstract class DataAccessUtils {
if (resultList.size() > 1) {
throw new IncorrectResultSizeDataAccessException(1);
}
return CollectionUtils.isEmpty(resultList) ? null : resultList.get(0);
return resultList.isEmpty() ? null : resultList.get(0);
}
}