KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ChangedPackage > ChangedClass


1 package ChangedPackage;
2
3 /**
4  * OLD: The changes in this class are to do with additions and removals and
5  * changes of parameter and return types.
6  * There are no changes in deprecation, modifiers, inheritance or exceptions.
7  * There are also no tests for finding the first sentence of a comment.
8  */

9 public class ChangedClass {
10
11     /** This constructor should remain unchanged. */
12     public ChangedClass() {
13     }
14
15     /** This constructor should have been removed. */
16     public ChangedClass(int removed) {
17     }
18
19     /** This constructor should have been changed. */
20     public ChangedClass(int a, int b) {
21     }
22
23     /** This method should remain unchanged. */
24     public void UnchangedMethod() {
25     }
26
27     /** This method should have been removed. */
28     public void RemovedMethod() {
29     }
30
31     /** This method should have been changed. */
32     public void ChangedMethod() {
33     }
34
35     /** This field should remain unchanged. */
36     public boolean unchanged;
37
38     /** This field should have been removed. */
39     public boolean removed;
40
41     /** This field should have been changed. */
42     public boolean changed;
43 }
44
Popular Tags