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