It is correct. "charm" is assigned to, but never read from, so it is never
used. Basically you could remove it from your code and it would work exactly
as before.

--
fedor.

----
When I was a kid I said to my father one afternoon, "Daddy, will you
take me to the zoo?" He answered, "If the zoo wants you let them come
and get you."
                -- Jerry Lewis


> -----Original Message-----
> From: Ian Pojman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 13, 2002 7:37 AM
> To: [EMAIL PROTECTED]
> Subject: [Eap-list] Unused? reference
> 
> 
> I have the following code:
> 
>                      char charm = (char) 0;
>                      try {
>                          do {
>                          } while (x++ < s.length() && (charm = 
> s.charAt(x)) != '\t');
>                      } catch (StringIndexOutOfBoundsException sioob) {
>                          continue;
>                      }
> 
> Now, IDEA lists "charm" as unused.  Is that right? I think it 
> should no 
> be highlighted as a warning, as it's integral to the code
> 
> Ian
> 
> 
> _______________________________________________
> 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