1 package ChangedPackage; 2 3 /** 4 * OLD: The changes in this class are to do with changes in inherited 5 * methods and fields. 6 */ 7 public class ChangedParent { 8 9 /** This constructor should remain unchanged. */ 10 public ChangedParent() { 11 } 12 13 /** OLD This method moves to its child. */ 14 public void MovingMethod2() { 15 } 16 17 /** OLD This method is removed from the parent. */ 18 public int OldParentMethod(int a) { 19 return 1; 20 } 21 22 /** OLD This field moves to its child. */ 23 public int MovingField2; 24 25 /** OLD This field is removed from the parent. */ 26 public String OldParentField; 27 } 28