Overriding a method just to call the same method from the super class without performing any other actions is useless and misleading.
Noncompliant code example
override public function doSomething() : void
{
super.doSomething();
}
override public function isLegal(action:Action) : Boolean
{
return super.isLegal(action);
}
Compliant solution
override public function doSomething() : void
{
super.doSomething(); // Compliant - not simply forwarding the call
doSomethingElse();
}
override public function isLegal(action:Action) : Boolean
{
return super.isLegal(new Action(...)); // Compliant - not simply forwarding the call
}
[Deprecated(replacement="isAuthorized")]
override public function isLegal(action:Action) : Boolean
{
return super.isLegal(action); // Compliant as there is a metadata
}