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.Collection)
|
||||||
* @see CollectionUtils#isEmpty(java.util.Map)
|
* @see CollectionUtils#isEmpty(java.util.Map)
|
||||||
*/
|
*/
|
||||||
|
@Contract("null -> true")
|
||||||
public static boolean isEmpty(@Nullable Object obj) {
|
public static boolean isEmpty(@Nullable Object obj) {
|
||||||
if (obj == null) {
|
if (obj == null) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user