S2326: T is not used in the interface

My SonarLint for Eclipse version:

I have an interface with a generic parameter, where the only use of the parameter is that it is substituted in the declaration of its inner implementations. But SonarLint still indicates the above error (“S2326: T is not used in the interface.”) as if the parameter was not used.

public interface Type<T> { // this T is necessary
    public static final class Int extends Type<Integer> { /*...*/ }

    public static final class String extends Type<String> { /*...*/ }

Hi @davidsusu,

Can you explain your use case a bit more concretely? From the code you posted, I can’t tell what purpose the type parameter is supposed to serve.