@java.lang.Override
annotation.
Annotating methods improves code readability since it shows the intent. In addition, the compiler emits an error when a signature of the overridden method doesn't match the superclass method.
Configure the inspection:
java.lang.Object
methods: equals()
, hashCode()
, and
toString()
. The risk that these methods will disappear and
your code won't be compiling anymore due to the @Override
annotation is relatively small.
This inspection is only applicable if the language level of a project or module is five or higher.