This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new dc4810aa9 Add TODO comment
dc4810aa9 is described below

commit dc4810aa9847f8bc11b269cba7930d005303329f
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Aug 21 09:40:33 2022 -0400

    Add TODO comment
---
 src/main/java/org/apache/commons/lang3/ObjectUtils.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/java/org/apache/commons/lang3/ObjectUtils.java 
b/src/main/java/org/apache/commons/lang3/ObjectUtils.java
index e51131973..920855ca3 100644
--- a/src/main/java/org/apache/commons/lang3/ObjectUtils.java
+++ b/src/main/java/org/apache/commons/lang3/ObjectUtils.java
@@ -1057,6 +1057,7 @@ public class ObjectUtils {
             return ((Map<?, ?>) object).isEmpty();
         }
         if (object instanceof Optional<?>) {
+            // TODO Java 11 Use Optional#isEmpty()
             return !((Optional<?>) object).isPresent();
         }
         return false;

Reply via email to