Inspection problems

I just enabled these two inspections:
. equals() between objects of inconvertible types
. expression.equals("literal") rather than "literal".equals(expression)

And I have this in my code : getSta().equals("c"), where getSta()
returns an Integer.

I don't have any warning in the code, I don't understand why.

But when I inspect code (Analyse/Inspect code) and I check these two
inspections, it does report the two warnings.

Any idea?

BoD

6 comments
Comment actions Permalink

Immediate upon enabling an inspection in the errors settings panel, IDEA won't always recheck the currently open editors. You may have to explicitly cause it to recheck, either by closing and reopening the editor or causing a change to the file. If it's still not working, check the error settings panel to see if you actually turned the errors on. If all that doesn't work, I'll be very surprised, but please let me know immediately.

--Dave Griffith

0
Comment actions Permalink

I'm very sorry to tell you that it didn't work (I even restarted Idea to
be sure).
I'm using build 2251, do you want me to verify with the latest 4.5 build?

BoD

Dave Griffith wrote:

Immediate upon enabling an inspection in the errors settings panel, IDEA won't always recheck the currently open editors. You may have to explicitly cause it to recheck, either by closing and reopening the editor or causing a change to the file. If it's still not working, check the error settings panel to see if you actually turned the errors on. If all that doesn't work, I'll be very surprised, but please let me know immediately.

--Dave Griffith

0
Comment actions Permalink


No, just submit a tracker item. I've got no sensible way of fixing old IG branches, so this one will have to go to JetBrains.

--Dave Griffith

0
Comment actions Permalink

Sorry, now I understand: InspectionGadgets error highlighting was not
enabled.

I'm not sure if it's enabled by default, but just in case I suggested to
jetbrain support to enable it by default in future releases.

Thanks!

BoD

Dave Griffith wrote:

No, just submit a tracker item. I've got no sensible way of fixing old IG branches, so this one will have to go to JetBrains.

--Dave Griffith

0
Comment actions Permalink

The "Inspection Gadgets Error Highlighting" menu item has been removed completely in Irida, since there are now multiple quick-selectable error profiles which cover that use case. Sorry for any confusion.

--Dave Griffith

0
Comment actions Permalink

Not rerunning inspections on profile change is a definite bug.

"Dave Griffith" <dave.griffith@cnn.com> wrote in message
news:11894848.1115211385285.JavaMail.itn@is.intellij.net...

Immediate upon enabling an inspection in the errors settings panel, IDEA

won't always recheck the currently open editors. You may have to explicitly
cause it to recheck, either by closing and reopening the editor or causing a
change to the file. If it's still not working, check the error settings
panel to see if you actually turned the errors on. If all that doesn't
work, I'll be very surprised, but please let me know immediately.
>

--Dave Griffith



0

Please sign in to leave a comment.