Does this inspection exist?

Hi,

I had a look through the inspections and I can't see an inspection that
would warn me about the following code
int i1 = 1;
int i2 = 2;
System.out.println (i2 + '-' + i1 + " = " + (i2-i1));

Is there an inspection that warns me about the '-' being treated as a
numeric value, and a quickfix that converts to the following?
System.out.println (i2 + "-" + i1 + " = " + (i2-i1));

I couldn't see it (in build 6981). If it doesn't exist I'll file a JIRA.

Thanks,
R

Please sign in to leave a comment.