Raw Type Warning in Android Studio
问题 Android Studio doesn't show a compiler warning when using the raw type in referencing a generic type. Is there a way to enable this feature? public class GenericClass<T> { } public class SpecificClass extends GenericClass { } Eclipse usually shows the following warning: GenericClass is a raw type. References to generic type GenericClass <T> should be parameterized. 回答1: You can enable the warning but cant force it as compilation error. Same is the case in Eclipse[see tail for the update]. You