NoFunctionalReturnType
Instead of returning a functional type, return the actual type that the returned function would return and use lambdas at use site.

Severity
WARNING
Has Fix?
NO_FIX

The problem

Returning the actual type that the returned function would return instead of a functional type creates a more versatile method

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("NoFunctionalReturnType") to the enclosing element.