Why does the annotated source for my Java code look wrong?

In most cases this is a result of the way the Java compiler generates the debugging information. To verify this, run your code under the debugger and step through the lines that seem wrong. If the debugger misses them, so does PureCoverage. PureCoverage only knows about the line number information used by the debugger.

For ease of readability, source lines containing no executable code are colored the same as their adjacent lines; provided both adjacent lines are also the same color. These lines have no entry in the Line Coverage column. If your annotated source looks unusual, analyze the Line Coverage column to see whether a line contained any executable code.

Note:

§      If you code different Boolean sub-expressions on separate lines, you can see coverage for each sub-expression instead of a single, usually partial, coverage number for the entire expression.

(C) Copyright IBM Corporation 1993, 2010.