Checking for a condition, even if it's always true
Don't use a comment. Use code. Specifically, assert builder.length() &gt;= 2 and assert builder.charAt(builder.length() -2) == ' '. Assertions will clearly indicate the preconditions, and they can be excluded by the compiler or jvm so they don't impact the deployed code.