1 | package edu.ucsb.cs156.courses.documents; | |
2 | ||
3 | import lombok.AllArgsConstructor; | |
4 | import lombok.Builder; | |
5 | import lombok.Data; | |
6 | import lombok.NoArgsConstructor; | |
7 | import org.bson.types.ObjectId; | |
8 | import org.springframework.data.mongodb.core.mapping.Document; | |
9 | ||
10 | @Data | |
11 | @Builder | |
12 | @NoArgsConstructor | |
13 | @AllArgsConstructor | |
14 | @Document(collection = "courses") | |
15 | public class ConvertedSection { | |
16 | private ObjectId _id; | |
17 | private CourseInfo courseInfo; | |
18 | private Section section; | |
19 | ||
20 | @Override | |
21 | public Object clone() throws CloneNotSupportedException { | |
22 | ||
23 | ConvertedSection newConvertedSection = new ConvertedSection(); | |
24 | ||
25 |
1
1. clone : removed call to edu/ucsb/cs156/courses/documents/ConvertedSection::set_id → KILLED |
newConvertedSection.set_id(this._id); |
26 | ||
27 | CourseInfo newCourseInfo = (CourseInfo) this.getCourseInfo().clone(); | |
28 |
1
1. clone : removed call to edu/ucsb/cs156/courses/documents/ConvertedSection::setCourseInfo → KILLED |
newConvertedSection.setCourseInfo(newCourseInfo); |
29 | ||
30 | Section newSection = (Section) this.getSection().clone(); | |
31 |
1
1. clone : removed call to edu/ucsb/cs156/courses/documents/ConvertedSection::setSection → KILLED |
newConvertedSection.setSection(newSection); |
32 | ||
33 |
1
1. clone : replaced return value with null for edu/ucsb/cs156/courses/documents/ConvertedSection::clone → KILLED |
return newConvertedSection; |
34 | } | |
35 | } | |
Mutations | ||
25 |
1.1 |
|
28 |
1.1 |
|
31 |
1.1 |
|
33 |
1.1 |