FP: Java S4968 The upper bound of type variables and wildcards should not be "final"

in SonarQube 10.3

a parameter declaration like:
Function<? super D , ? extends Optional<? extends T>> transform

is declared as non-compliant because Optional is final. True but this is the standard way of Declaring a function that returns an Optional of T or any subtype of T.

Hi Neil,

Welcome to the community,

Thank you for reporting this false positive, it is a tricky example. I have created a ticket to fix the issue. For now, you can mark it as a False Positive.