Javac should emit a lint warning when a method declares a naked type variable as return type that isn't present in the formal parameters.
Alternatively, a specific callsite might be warned if a method declaring a naked type variable as return type is invoked with 'null' as actual argument for all parameters referring to this type variable.
Alternatively, a specific callsite might be warned if a method declaring a naked type variable as return type is invoked with 'null' as actual argument for all parameters referring to this type variable.
- relates to
- 
                    JDK-8209454 [error-prone] TypeParameterUnusedInFormals in jdk.net -           
- Closed
 
-         
- links to
