The problem with just leaving intentionally unused variables highlighted is that the user ends up constantly going back and looking at the highlighted line to see if its something that needs to be corrected. What is needed is the ability to be able to tell IDEA to ignore specific instances of unused variables. The same problem existed for the old C syntax checker 'lint', their solution was to allow the user to put comments in the code that would suppress specific warnings at specific locations. Personally I think something along these lines is preferable to trying to invent ever more complex rules for when an unused item shouldn't be marked unused.
-- Mark -----Original Message----- From: Edoardo Comar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 04:53p To: [EMAIL PROTECTED] Subject: RE: [Eap-list] Unused variable problem 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 _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
