| 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 | ||
| 8 | /** | |
| 9 |  * CourseInfo is an object that stores all of the information about a course from the UCSB Courses | |
| 10 |  * API except for the section info | |
| 11 |  */ | |
| 12 | @Data | |
| 13 | @Builder | |
| 14 | @NoArgsConstructor | |
| 15 | @AllArgsConstructor | |
| 16 | public class CourseInfo implements Cloneable { | |
| 17 |   private String quarter; | |
| 18 |   private String courseId; | |
| 19 |   private String title; | |
| 20 |   private String description; | |
| 21 | ||
| 22 |   public Object clone() throws CloneNotSupportedException { | |
| 23 |     CourseInfo newCourseInfo = (CourseInfo) super.clone(); | |
| 24 | 1
1. clone : replaced return value with null for edu/ucsb/cs156/courses/documents/CourseInfo::clone → KILLED |     return newCourseInfo; | 
| 25 |   } | |
| 26 | } | |
| Mutations | ||
| 24 | 1.1 |