Empty if warning
Hi.
I am unsure if this is a problem of IPP (I am using the build that was done
for Pallada on 2013) or of IntelliJ.
Consider the following code piece:
if (type.equals("")) {
isStandard = false;
} else {
}
I get a yellow box on the if stating that it has an empty body (when in fact
the else has an empty body).
There is an intention to flip the if but not to just remove the empty body.
Is that intentional?
Amnon
Please sign in to leave a comment.
This is an InspectionGadgets issue. I'll put it on the list.
--Dave Griffith
Thanks.
Is there any way to know what comes from where other than removing IG and
trying again?
Amnon
"Dave Griffith" <dave.griffith@cnn.com> wrote in message
news:14826813.1082685365044.JavaMail.itn@is.intellij.net...
>
>
You can disable Inspection Gadgets error hightlighting in the tools menu.
Tools > Inspection Gadgets error highlighting
Retrigger the code analysis after that by inserting and deleting a
newline and any Inspection Gadgets warnings should disappear.
Bas
On 23-04-2004 15:47, Amnon I. Govrin wrote:
>>
>> This is an InspectionGadgets issue. I'll put it on the list.
>>
>> --Dave Griffith