It is unused. You could have written a static block with 
 static {
   new thread_class()
        {
                // ...
        }.start();
  }

The style may not be great, but that varibale is never accessed.
My preference is for having the variable and let IDEA mark it as unused.
I have no problem with that.
I rather hope that IDEA won't have too much own judgement about what's
unused that should *not* be highlighted as such.
I already asked for having an option to show or not such special cases
as unused. 
Repeating myself, it's nice to see that something that is designed to be
unused is marked as unused.

Edo

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] On Behalf Of Jordan Zimmerman
> Sent: 13 February 2002 00:07
> To: '[EMAIL PROTECTED]'
> Subject: [Eap-list] Unused variable problem
> 
> 
> I have a case where Ariadna is reporting that a variable is 
> unused incorrectly.
> 
> class x
> {
>       // ...
> 
>       private static final thread_class               
> private_thread = new
> thread_class()
>       {
>               // ...
>       };
> }
> 
> Ariadna is reporting that "private_thread" is unused 
> incorrectly. "private_thread" is a Thread that self-starts 
> (inside of the base class "thread_class").
>  
> ===========================
> Jordan Zimmerman
> Altura International
> Catalog City
> 
> _______________________________________________
> 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

Reply via email to