This is an unchecked cast with JDK Optional as well as other implementations
@@ -1050,7 +1050,6 @@ public final class ValueAttribute extends TypeIntrospectionBase implements HasSt
public boolean isSafeUncheckedCovariantCast() {
return isOptionalType()
- && !isJdkOptional()
&& !getConsumedElementType().equals(getWrappedElementType());
}
