KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > second > A


1 /*
2  * Cobertura - http://cobertura.sourceforge.net/
3  *
4  * Copyright (C) 2006 John Lewis
5  *
6  * Note: This file is dual licensed under the GPL and the Apache
7  * Source License (so that it can be used from both the main
8  * Cobertura classes and the ant tasks).
9  *
10  * Cobertura is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published
12  * by the Free Software Foundation; either version 2 of the License,
13  * or (at your option) any later version.
14  *
15  * Cobertura is distributed in the hope that it will be useful, but
16  * WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with Cobertura; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23  * USA
24  */

25
26 package test.second;
27
28 /**
29  * Simple class used in functional testing.
30  *
31  * @author John Lewis
32  */

33 public class A
34 {
35
36     public void call()
37     {
38         someMethod();
39     }
40
41     public void dontCall()
42     {
43         someMethod();
44     }
45
46     public static void someMethod()
47     {
48         String JavaDoc a = null;
49         String JavaDoc b = null;
50
51         a = b;
52         b = a;
53     }
54
55 }
56
Popular Tags