User @Override in class A? Does that make sense? I am not overriding a superclass method in A.foo().

On Thu, Dec 15, 2011 at 6:02 PM, Hamlet D'Arcy <hamletdrc@gmail.com> wrote:

Use the @Override to make it go away. In general, codenarc expects @Override to be used. There are other rules that expect it too.

--
Hamlet D'Arcy
hamletdrc@gmail.com

On Dec 15, 2011 1:03 PM, "Roshan Dawrani" <roshandawrani@gmail.com> wrote:
Hi,

For the code below, CodeNarc complains that A.foo() does not use method parameter 'x'. In the base implementation, there is no need to use 'x', but the subclasses do.

Is there any way I can avoid this warning for class A?

McAfee SiteAdvisor Warning
This e-mail message contains potentially unsafe links to these sites:
lucy.me more info...
class A {
    protected foo(x) {
        // base implementation leaves x unused
    }
}

class B extends A {
    protected foo(x) {
        // this overridden implementation uses x
    }
}

--
Roshan

------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.
But none more important than the need to reduce IT complexity
while improving strategic productivity.  Learn More!
http://www.accelacomm.com/jaw/sdnl/114/51507609/
_______________________________________________
Codenarc-user mailing list
Codenarc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/codenarc-user