"Simplify" intention introduces error

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.

4 comments
Comment actions Permalink

Please post a bug to JIRA.

--Dave Griffith

0
Comment actions Permalink

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.

0
Comment actions Permalink

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

0
Comment actions Permalink


In general, all bug reports and RFEs should be posted to JIRA.

--Dave Griffith

0

Please sign in to leave a comment.