I am using the eclipse checkstyle plugin. I have several methods in class A that are overridden in class B. I have the following warning for most methods
A function is SearchAndReplacenot considered inherited
- it must be declared abstract or final, or left empty.
Are there any advantages to declaring a method as final?
EDIT
I know what the final keyword is suitable for. I know this prevents overriding methods, are there any other benefits like performance or something like that?
source
share