"Simplify" intention introduces error Follow
The following code flags up "yellow":
if (e instanceof IOCancelledException == false)
{
//
}
I tried the suggested "simplify" intention, and it created.
if (!e instanceof IOCancelledException)
{
//
}
...which doesn't work! It should've wrapped "e instanceof IOCancelledException" in parentheses.
Please sign in to leave a comment.
Please post a bug to JIRA.
--Dave Griffith
I also wanted to make a suggestion (Request For Enhancement). What should be on the forums, and what should be in JIRA ?
For info, I wanted to suggest that when pressing CTRL+O (to override a method), in "Java 5 mode", it should automatically add the @Override annotation.
It already does - look at the bottom of the dialog box where you choose
which methods to override.
I missed it as well ...
http://www.jetbrains.net/jira/browse/IDEADEV-733
R
In general, all bug reports and RFEs should be posted to JIRA.
--Dave Griffith