Skip to content

Commit

Permalink
Fix reference to Optional.isPresent() in ObjectUtils.isEmpty()
Browse files Browse the repository at this point in the history
Closes gh-27223
  • Loading branch information
matvs authored Jul 29, 2021
1 parent c2f9176 commit f1b35f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public static boolean isEmpty(@Nullable Object[] array) {
* Determine whether the given object is empty.
* <p>This method supports the following object types.
* <ul>
* <li>{@code Optional}: considered empty if {@link Optional#empty()}</li>
* <li>{@code Optional}: considered empty if not {@link Optional#isPresent()}</li>
* <li>{@code Array}: considered empty if its length is zero</li>
* <li>{@link CharSequence}: considered empty if its length is zero</li>
* <li>{@link Collection}: delegates to {@link Collection#isEmpty()}</li>
Expand Down

0 comments on commit f1b35f1

Please sign in to comment.