Override Warning Inspection for Class Inheritance Only: Is it possible?
Answered
My project has a coding convention that we must only use @Override for class inheritance and not interface inheritance.
Is it possible to configure the warnings inspections to make this so?
I know this is possible for Eclipse but I only see Inheritance > Missing @Override Annotation under inspections.
Is there a way to do this?
Please sign in to leave a comment.
Such kind of very project-specific problems usually can be encoded via Structural Search & Inspection. Go to project Settings|Editor|Inspections, add new template via '+' button, then create a pattern for new inspection according to this docs page:
https://www.jetbrains.com/help/idea/tutorial-work-with-structural-search-and-replace.html#method_call