Add missing `@Contract` annotation to ObjectUtils#isEmpty

Closes gh-33984
This commit is contained in:
Sébastien Deleuze 2024-11-28 15:16:36 +01:00
parent 1aede291bb
commit ddec8d2653
1 changed files with 1 additions and 0 deletions

View File

@ -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;