Hard to find
Hi,
Is there an inspection method in IntelliJ that detects hard to find
mistakes like this?
...
if (conditionIsTrue);
{
doOnlyIfConditionIsTrue();
}
...
Pay attention to the ";" at the end of the "if" line.
Thanks,
Franklin.
请先登录再写评论。
Franklin wrote:
I thought that "Statement with empty body" under "Probable Bugs" was
supposed to catch that. But it isn't catching it right now.
Yes, it should be. I'll give it a look.
--Dave Griffith