On Thu, Sep 4, 2014 at 1:05 AM, Peter Ford <pete@xxxxxxxxxxxxx> wrote: > The IDE I'm using (NetBeans) can be tuned to turn various hints on and > off, but the 'unused variable' hint that my code throws up is not > fine-grained enough to handle cases where the unused variable is actually > the most efficient way to do it. I use NetBeans as well, and it seems like a reasonable request to have it detect these two cases of acceptable unused variables. I've submitted a feature request [1] and noticed that they recently altered the hint in the case of catching and ignoring an exception [2]. Cheers, David [1] https://netbeans.org/bugzilla/show_bug.cgi?id=246880 [2] https://netbeans.org/bugzilla/show_bug.cgi?id=246230