mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 08:24:13 +00:00
Upgrade to NullAway 0.12.10 and refine nullability
Closes gh-35492
This commit is contained in:
@@ -116,7 +116,7 @@ public abstract class DataAccessUtils {
|
||||
* element has been found in the given Collection
|
||||
* @since 6.1
|
||||
*/
|
||||
public static <T extends @Nullable Object> Optional<@NonNull T> optionalResult(@Nullable Collection<T> results)
|
||||
public static <T> Optional<T> optionalResult(@Nullable Collection<? extends @Nullable T> results)
|
||||
throws IncorrectResultSizeDataAccessException {
|
||||
|
||||
return Optional.ofNullable(singleResult(results));
|
||||
|
||||
Reference in New Issue
Block a user