NestedOptionals
WARNING
FragileCode
Summary
Avoid nesting
Optional
s insideOptional
s; the resultant code is hard to reason about
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("NestedOptionals")
to the enclosing element.Disable this pattern completely by adding
-Xep:NestedOptionals:OFF
as compiler argument. Learn more.