Jindent - Java Source Code Formatter http://www.jindent.com
 



title
5.6.2.15 Code Analyzers Support

Leave extra space after empty loops

Leave extra space after empty loops

Some code analyzer tools like PCLint checks for empty statements in specific loop statements. If these tools find empty statements they report warnings that the author of this code may have done something wrong here. To tell the static code checker that this empty statement was declared intentionally the programmer can put an extra white space before the semicolon of the empty statement.
Since Jindent usually would remove this white space to improve the readability and general formatting style of the source code we have introduced an exception rule to leave single white spaces found in empty statements of for and while loops.