~ubuntu-branches/ubuntu/precise/cobertura/precise

« back to all changes in this revision

Viewing changes to src/net/sourceforge/cobertura/javancss/FunctionMetric.java

  • Committer: Bazaar Package Importer
  • Author(s): Miguel Landaeta
  • Date: 2010-05-11 19:21:46 UTC
  • mfrom: (0.1.4 sid) (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100511192146-j742v5jsl89ztndu
Tags: 1.9.4.1+dfsg-2
* Now Build-Depends on libservlet2.5-java and add a missing Depends
  on the same package. (Closes: #580842). 
* Simplify list of JRE dependences for cobertura and drop JRE dependences for
  libcobertura-java as Java libraries are no longer required to depend on a
  JVM.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Cobertura - http://cobertura.sourceforge.net/
 
3
 *
 
4
 * This file was taken from JavaNCSS
 
5
 * http://www.kclee.com/clemens/java/javancss/
 
6
 * Copyright (C) 2000 Chr. Clemens Lee <clemens a.t kclee d.o.t com>
 
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
 
 
25
/*
 
26
 *
 
27
 * WARNING   WARNING   WARNING   WARNING   WARNING   WARNING   WARNING   WARNING   WARNING  
 
28
 *
 
29
 * WARNING TO COBERTURA DEVELOPERS
 
30
 *
 
31
 * DO NOT MODIFY THIS FILE!
 
32
 *
 
33
 * MODIFY THE FILES UNDER THE JAVANCSS DIRECTORY LOCATED AT THE ROOT OF THE COBERTURA PROJECT.
 
34
 *
 
35
 * FOLLOW THE PROCEDURE FOR MERGING THE LATEST JAVANCSS INTO COBERTURA LOCATED AT
 
36
 * javancss/coberturaREADME.txt
 
37
 *
 
38
 * WARNING   WARNING   WARNING   WARNING   WARNING   WARNING   WARNING   WARNING   WARNING   
 
39
 */
 
40
/*
 
41
Copyright (C) 2000 Chr. Clemens Lee <clemens@kclee.com>.
 
42
 
 
43
This file is part of JavaNCSS
 
44
(http://www.kclee.com/clemens/java/javancss/).
 
45
 
 
46
JavaNCSS is free software; you can redistribute it and/or modify it
 
47
under the terms of the GNU General Public License as published by the
 
48
Free Software Foundation; either version 2, or (at your option) any
 
49
later version.
 
50
 
 
51
JavaNCSS is distributed in the hope that it will be useful, but WITHOUT
 
52
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 
53
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 
54
for more details.
 
55
 
 
56
You should have received a copy of the GNU General Public License
 
57
along with JavaNCSS; see the file COPYING.  If not, write to
 
58
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
59
Boston, MA 02111-1307, USA.  */
 
60
 
 
61
package net.sourceforge.cobertura.javancss;
 
62
 
 
63
/**
 
64
 * Basic data class to store all metrics attached to a function.
 
65
 *
 
66
 * @author  Herv� Boutemy
 
67
 * @version $Id: FunctionMetric.java 121 2009-01-17 22:19:45Z hboutemy $
 
68
 */
 
69
public class FunctionMetric  extends Metric
 
70
{
 
71
    public int ccn = 0;
 
72
 
 
73
    public FunctionMetric()
 
74
    {
 
75
        super();
 
76
    }
 
77
 
 
78
    public void clear()
 
79
    {
 
80
        super.clear();
 
81
        ccn = 0;
 
82
    }
 
83
}