BAEL-6633 (#14356)
* Deep copy of Arraylist * Deep copy of Arraylist * Deep copy of Arraylist updated as per review * Deep copy of Arraylist updated as per review * Deep copy of Arraylist updated as per review
This commit is contained in:
parent
e3f36b304f
commit
1556a3c384
|
@ -36,7 +36,7 @@ public class Course implements Serializable, Cloneable {
|
|||
try {
|
||||
return (Course) super.clone();
|
||||
} catch (CloneNotSupportedException e) {
|
||||
throw new AssertionError();
|
||||
throw new IllegalStateException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ public class Student implements Serializable, Cloneable {
|
|||
try {
|
||||
student = (Student) super.clone();
|
||||
} catch (CloneNotSupportedException e) {
|
||||
throw new AssertionError();
|
||||
throw new IllegalStateException(e);
|
||||
}
|
||||
student.course = this.course.clone();
|
||||
return student;
|
||||
|
|
Loading…
Reference in New Issue