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:
@@ -36,7 +36,7 @@ public class Course implements Serializable, Cloneable {
|
|||||||
try {
|
try {
|
||||||
return (Course) super.clone();
|
return (Course) super.clone();
|
||||||
} catch (CloneNotSupportedException e) {
|
} catch (CloneNotSupportedException e) {
|
||||||
throw new AssertionError();
|
throw new IllegalStateException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ public class Student implements Serializable, Cloneable {
|
|||||||
try {
|
try {
|
||||||
student = (Student) super.clone();
|
student = (Student) super.clone();
|
||||||
} catch (CloneNotSupportedException e) {
|
} catch (CloneNotSupportedException e) {
|
||||||
throw new AssertionError();
|
throw new IllegalStateException(e);
|
||||||
}
|
}
|
||||||
student.course = this.course.clone();
|
student.course = this.course.clone();
|
||||||
return student;
|
return student;
|
||||||
|
|||||||
Reference in New Issue
Block a user