Add TODO comment

This commit is contained in:
Gary Gregory 2022-08-21 09:40:33 -04:00
parent ec90e0d6bb
commit dc4810aa98
1 changed files with 1 additions and 0 deletions

View File

@ -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;