Refine null-safety in the spring-jms module

Closes gh-34157
This commit is contained in:
Sébastien Deleuze
2024-12-26 15:18:27 +01:00
parent be11e73d2c
commit 9516d9b822
6 changed files with 6 additions and 7 deletions

View File

@@ -289,7 +289,7 @@ public abstract class CollectionUtils {
* or {@code null} if none or more than one such value found
*/
@SuppressWarnings("unchecked")
public static <T> @Nullable T findValueOfType(Collection<?> collection, @Nullable Class<T> type) {
public static <T> @Nullable T findValueOfType(@Nullable Collection<?> collection, @Nullable Class<T> type) {
if (isEmpty(collection)) {
return null;
}