mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Add missing @Contract annotation to ObjectUtils#isEmpty
Closes gh-33984
This commit is contained in:
@@ -138,6 +138,7 @@ public abstract class ObjectUtils {
|
||||
* @see CollectionUtils#isEmpty(java.util.Collection)
|
||||
* @see CollectionUtils#isEmpty(java.util.Map)
|
||||
*/
|
||||
@Contract("null -> true")
|
||||
public static boolean isEmpty(@Nullable Object obj) {
|
||||
if (obj == null) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user