I've got an application that uses an ORM solution that requires the default constructor to be left in the class. To prevent my accidental usage of this default constructor, I would like to highlight any usages of it with warning.
I'm currently annotating it with a custom annotation like "@DoNotUse" but I can't figure out how to get Intellij to mark its usages with a warning.
I don't believe structural search inspections can solve this problem.
Is my only hope a plugin now?
EDIT: Since someone obviously didn't read the question, I am not looking for a reason why @Deprecated
is causing a statement in my code to be marked with a warning, I'm looking for a way to replicate this effect with other custom annotations.