From 71e90f4f6ec2f74d637d12a4c6f48d26cb9ecb87 Mon Sep 17 00:00:00 2001 From: gohyongjing Date: Tue, 14 Mar 2023 11:44:00 +0800 Subject: [PATCH] Fix javadocs typos in Model and FriendlyLink --- .../java/seedu/address/model/FriendlyLink.java | 4 ++-- src/main/java/seedu/address/model/Model.java | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/seedu/address/model/FriendlyLink.java b/src/main/java/seedu/address/model/FriendlyLink.java index d741091df2e..c4312fed72f 100644 --- a/src/main/java/seedu/address/model/FriendlyLink.java +++ b/src/main/java/seedu/address/model/FriendlyLink.java @@ -208,7 +208,7 @@ public boolean hasPair(Pair pair) { } /** - * Adds a {code @pair} to {@code FriendlyLink}. + * Adds a {@code pair} to {@code FriendlyLink}. * The pair must not already exist in {@code FriendlyLink}. * * @param pair Pair to add into FriendlyLink. @@ -219,7 +219,7 @@ public void addPair(Pair pair) { /** * Adds a pair consisting of elderly with {@code elderlyNric} and volunteer with {@code volunteerNric} - * from {@code FriendlyLink}. + * to {@code FriendlyLink}. * The pair must not already exist in {@code FriendlyLink}. * * @param elderlyNric Nric of elderly. diff --git a/src/main/java/seedu/address/model/Model.java b/src/main/java/seedu/address/model/Model.java index 2406bfedee8..5b91d0cb9cd 100644 --- a/src/main/java/seedu/address/model/Model.java +++ b/src/main/java/seedu/address/model/Model.java @@ -125,39 +125,39 @@ public interface Model { /** * Adds the given pair. - * {@code pair} must not already exist in the address book. + * {@code pair} must not already exist in FriendlyLink. */ void addPair(Pair pair); /** * Adds the given pair. * The pair consisting of elderly with {@code elderlyNric} and volunteer with {@code volunteerNric} - * must not already exist in the address book. + * must not already exist in FriendlyLink. */ void addPair(Nric elderlyNric, Nric volunteerNric); /** - * Returns true if a pair with the same identity as {@code pair} exists in the address book. + * Returns true if a pair with the same identity as {@code pair} exists in FriendlyLink. */ boolean hasPair(Pair pair); /** * Deletes the given pair. - * The pair must exist in the address book. + * The pair must exist in FriendlyLink. */ void deletePair(Pair target); /** * Deletes the given pair. * The pair consisting of elderly with {@code elderlyNric} and volunteer with {@code volunteerNric} - * must exist in the address book. + * must exist in FriendlyLink. */ void deletePair(Nric elderlyNric, Nric volunteerNric); /** * Replaces the given pair {@code target} with {@code editedPair}. - * {@code target} must exist in the address book. - * The pair identity of {@code editedPair} must not be the same as another existing pair in the address book. + * {@code target} must exist in FriendlyLink. + * The pair identity of {@code editedPair} must not be the same as another existing pair in FriendlyLink. */ void setPair(Pair target, Pair editedPair);