We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0a06b8 commit 9782dfbCopy full SHA for 9782dfb
spring-core/src/main/java/org/springframework/util/function/SupplierUtils.java
@@ -37,7 +37,7 @@ public abstract class SupplierUtils {
37
* @param supplier the supplier to resolve
38
* @return the supplier's result, or {@code null} if none
39
*/
40
- @Contract("null -> null; !null -> !null")
+ @Contract("null -> null")
41
public static <T> @Nullable T resolve(@Nullable Supplier<T> supplier) {
42
return (supplier != null ? supplier.get() : null);
43
}
0 commit comments