Skip to content

Commit

Permalink
Add missing @Contract annotation to ObjectUtils#isEmpty
Browse files Browse the repository at this point in the history
Closes gh-33984
  • Loading branch information
sdeleuze committed Nov 28, 2024
1 parent 1aede29 commit ddec8d2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public static boolean isEmpty(@Nullable Object[] array) {
* @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;
Expand Down

0 comments on commit ddec8d2

Please sign in to comment.