Add missing `@Contract` annotation to ObjectUtils#isEmpty
Closes gh-33984
This commit is contained in:
parent
1aede291bb
commit
ddec8d2653
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue