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;