There is a class
class Base { public String toString() { return this.getClass().getName(); } } It overlaps the toString method without the @override notation. When compiled in IntelliJ IDEA 2016.3, I expect to see a warning, but it does not. Added the -Xlint , -Xlint:all , -Xlint:overrides parameters to the Compiler Settings -> Compiler -> Java compiler -> Additional command line parameters - had no effect. What am I doing wrong?