Reports if, while, do, for and switch statements having empty bodies. While occasionally intended, this construction is confusing, and often the result of a typo.

This inspection is disabled in JSP files.

Use the first checkbox below to indicate whether this inspection should report statements whose body is an empty code block, rather than just empty statements.

Use the second checkbox below to ignore empty statement bodies which contain a comment.