java - Why am getting error from SONAR even after removing @override Annotation.? -
class extends b{ protected void executeimpl(){ super.executeimpl(); } }
above class in being injected in third class
class c{ a; public void execute(){ a.executeimpl() } }
error: description assignee resource new issue useless overriding method : overriding method merely calls super
the @override
annotation can added on inherited method. not mean if remove annotation method not inherited anymore. still inherited ! , therefore rule still valid did not change semantic of program remove annoation.
Comments
Post a Comment