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