This is correct in #606.
Best regards,
Valentin Kipiatkov
-----------------------------------------------------------
IntelliJ Software, http://www.intellij.com/
"Develop with pleasure"
-----------------------------------------------------------
----- Original Message -----
From: "Thomas Singer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 19, 2002 12:21 PM
Subject: [Eap-list] Bug in highlighting unused methods
> Hello,
>
> assume following example:
>
> public class Bug {
> private void test(int value) {
> if (value == 0) {
> return;
> }
>
> test(value-1);
> }
> }
>
> The method test isn't shown as unused.
>
> Ok, it *is* used, but only within itself. Because no other method uses
this
> test-method, it never could call (==use) itself. Therefor it is unused.
>
> I know, that it could be much more difficult for more methods that call
> each other (a calls b, b calls c, c calls a) to detect, whether anybody
> else calls anything within this circle. But it is much simpler to detect
> simple recursive calls.
>
> Tom
>
>
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list