Are you sure the never used warning is on the line where the private
variable is defined and not on the first line of the constructor? Notice
that your argument to the constructor is missing an "r"--this causes the
unused warning to (correctly) appear for the constructor's argument.
Fixing that typo *does* cause the line where the private variable is defined
to be marked as unused, but notice that if you hover over it with the mouse,
IDEA says "Private field manager is assigned but never accessed". That's
correct, no?
IDEA's pretty smart, huh? :)
chris
========
> Hi,
>
> The following class generated a "never used" warning on the private
> variable:
>
> Final class ClassA
> {
> private Manager manager;
>
> ClassA(Manager manage)
> {
> this.manager = manager;
> ... ...
> }
> }
>
>
> is this the expected behavior?
>
>
> Thanks,
> Mike Liu
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list