| 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 | @Data | |
| 9 | @Builder | |
| 10 | @NoArgsConstructor | |
| 11 | @AllArgsConstructor | |
| 12 | public class GeneralEducation { | |
| 13 | private String geCode; | |
| 14 | private String geCollege; | |
| 15 | ||
| 16 | public String toString() { | |
| 17 |
1
1. toString : negated conditional → KILLED |
if (geCode == null) { |
| 18 | return ""; | |
| 19 | } | |
| 20 |
1
1. toString : negated conditional → KILLED |
if (geCollege == null) { |
| 21 |
1
1. toString : replaced return value with "" for edu/ucsb/cs156/courses/documents/GeneralEducation::toString → KILLED |
return geCode.trim(); |
| 22 | } | |
| 23 |
1
1. toString : replaced return value with "" for edu/ucsb/cs156/courses/documents/GeneralEducation::toString → KILLED |
return geCode.trim() + " (" + geCollege.trim() + ")"; |
| 24 | } | |
| 25 | } | |
Mutations | ||
| 17 |
1.1 |
|
| 20 |
1.1 |
|
| 21 |
1.1 |
|
| 23 |
1.1 |