1 | package edu.ucsb.cs156.courses.documents; | |
2 | ||
3 | import java.util.List; | |
4 | import lombok.AllArgsConstructor; | |
5 | import lombok.Builder; | |
6 | import lombok.Data; | |
7 | import lombok.NoArgsConstructor; | |
8 | ||
9 | /** | |
10 | * CourseInfo is an object that stores all of the information about a course from the UCSB Courses | |
11 | * API except for the section info | |
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 | private List<GeneralEducation> generalEducation; | |
23 | ||
24 | public Object clone() throws CloneNotSupportedException { | |
25 | CourseInfo newCourseInfo = (CourseInfo) super.clone(); | |
26 |
1
1. clone : replaced return value with null for edu/ucsb/cs156/courses/documents/CourseInfo::clone → KILLED |
return newCourseInfo; |
27 | } | |
28 | } | |
Mutations | ||
26 |
1.1 |