Java cvprof Coverage Report for
SyntheticConstructor.java

    1   
    2   package uk.co.badgersinfoil.cvprof.example;
    3   
    4   /**
    5    * Demonstrates a coverage anomaly due to a 'synthesised constructor'.  This
    6    * class extends java.lang.Object, and provides no constructor definition.
    7    * The Java compiler synthesises a no-args constructor for classes such as
    8    * this, and normally, the constructor is located at the first line of the
    9    * class definition (where you see the 'class' keyword).  The coverage report
   10    * for this file therefore shows this line as not covered, as we never call
   11    * 'new SyntheticConstructor()'.
   12    */
   13 > public class SyntheticConstructor {
   14   	public static void test() {
   15   		return;
   16   	}
   17   }