Skip to content

Commit

Permalink
Improve javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
jingting1412 committed Oct 17, 2023
1 parent 878e594 commit b3562c2
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public boolean contains(Applicant toCheck) {
/**
* Adds a Applicant to the list.
* The Applicant must not already exist in the list.
* catches RuntimeExceptions such as:
* catches {@code RuntimeException} such as:
* ClassCastException, NullPointerException, IllegalArgumentException
*/
public void add(Applicant toAdd) {
Expand All @@ -64,7 +64,7 @@ public void add(Applicant toAdd) {
* Replaces the applicant {@code target} in the list with {@code editedApplicant}.
* {@code target} must exist in the list.
* The applicant identity of {@code editedApplicant} must not be the same as another existing applicant in the list.
* catches RuntimeExceptions such as:
* catches {@code RuntimeException} such as:
* ClassCastException, NullPointerException, IllegalArgumentException, IndexOutOfBoundsException
*/
public void setApplicant(Applicant target, Applicant editedApplicant) {
Expand Down Expand Up @@ -105,6 +105,7 @@ public void setApplicants(UniqueApplicantList replacement) {
/**
* Replaces the contents of this list with {@code applicants}.
* {@code applicants} must not contain duplicate applicants.
* Catches {@code RuntimeException} such as NullPointerException
*/
public void setApplicants(List<Applicant> applicants) {
requireAllNonNull(applicants);
Expand All @@ -114,7 +115,7 @@ public void setApplicants(List<Applicant> applicants) {

try {
internalList.setAll(applicants);
} catch (Exception e) {
} catch (RuntimeException e) {
logger.info("Error setting applicants: " + StringUtil.getDetails(e));
}
}
Expand Down

0 comments on commit b3562c2

Please sign in to comment.