Inspectopedia
 
2024.3

Statement with empty body

Warning
Last modified: 03 December 2024

Reports if, while, do, for, and switch statements with empty bodies.

While occasionally intended, such code is confusing and is often the result of a typo.

This inspection is disabled in JSP files.