Coverage Report - net.sourceforge.cobertura.util.Header
 
Classes in this File Line Coverage Branch Coverage Complexity
Header
80%
4/5
50%
1/2
1
 
 1  
 /*
 2  
  * Cobertura - http://cobertura.sourceforge.net/
 3  
  *
 4  
  * Copyright (C) 2003 jcoverage ltd.
 5  
  * Copyright (C) 2005 Mark Doliner
 6  
  * Copyright (C) 2005 Erik Dick
 7  
  *
 8  
  * Cobertura is free software; you can redistribute it and/or modify
 9  
  * it under the terms of the GNU General Public License as published
 10  
  * by the Free Software Foundation; either version 2 of the License,
 11  
  * or (at your option) any later version.
 12  
  *
 13  
  * Cobertura is distributed in the hope that it will be useful, but
 14  
  * WITHOUT ANY WARRANTY; without even the implied warranty of
 15  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 16  
  * General Public License for more details.
 17  
  *
 18  
  * You should have received a copy of the GNU General Public License
 19  
  * along with Cobertura; if not, write to the Free Software
 20  
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 21  
  * USA
 22  
  */
 23  
 
 24  
 package net.sourceforge.cobertura.util;
 25  
 
 26  
 import java.io.PrintStream;
 27  
 
 28  0
 public abstract class Header
 29  
 {
 30  
 
 31  
         public static String version()
 32  
         {
 33  45
                 Package thisPackage = Header.class.getPackage();
 34  45
                 return (thisPackage != null ? thisPackage
 35  
                                 .getImplementationVersion() : "cvs");
 36  
         }
 37  
 
 38  
         public static void print(PrintStream out)
 39  
         {
 40  15
                 out.println("Cobertura " + version() + " - GNU GPL License (NO WARRANTY) - See COPYRIGHT file");
 41  15
         }
 42  
 }