diff --git a/src/main/java/seedu/address/model/AddressBook.java b/src/main/java/seedu/address/model/AddressBook.java index 716a741c597..00069d64f29 100644 --- a/src/main/java/seedu/address/model/AddressBook.java +++ b/src/main/java/seedu/address/model/AddressBook.java @@ -78,7 +78,7 @@ public void addPerson(Contact p) { /** * Replaces the given contact {@code target} in the list with {@code editedContact}. * {@code target} must exist in the address book. - * The contact identity of {@code editedContact} must not be the same as another existing contact in the address book. + * The contact identity of {@code editedContact} must not be the same as another existing one in the address book. */ public void setPerson(Contact target, Contact editedContact) { requireNonNull(editedContact); diff --git a/src/main/java/seedu/address/model/Model.java b/src/main/java/seedu/address/model/Model.java index d813222e5bb..fac138657d8 100644 --- a/src/main/java/seedu/address/model/Model.java +++ b/src/main/java/seedu/address/model/Model.java @@ -72,7 +72,7 @@ public interface Model { /** * Replaces the given contact {@code target} with {@code editedContact}. * {@code target} must exist in the address book. - * The contact identity of {@code editedContact} must not be the same as another existing contact in the address book. + * The contact identity of {@code editedContact} must not be the same as another existing one in the address book. */ void setPerson(Contact target, Contact editedContact); diff --git a/src/main/java/seedu/address/model/ReadOnlyAddressBook.java b/src/main/java/seedu/address/model/ReadOnlyAddressBook.java index 978b62d366e..0ce99c330f0 100644 --- a/src/main/java/seedu/address/model/ReadOnlyAddressBook.java +++ b/src/main/java/seedu/address/model/ReadOnlyAddressBook.java @@ -1,7 +1,6 @@ package seedu.address.model; import javafx.collections.ObservableList; - import seedu.address.model.person.Contact; /** diff --git a/src/main/java/seedu/address/model/person/UniquePersonList.java b/src/main/java/seedu/address/model/person/UniquePersonList.java index 4030ff194f3..715fe89fde2 100644 --- a/src/main/java/seedu/address/model/person/UniquePersonList.java +++ b/src/main/java/seedu/address/model/person/UniquePersonList.java @@ -13,8 +13,8 @@ /** * A list of persons that enforces uniqueness between its elements and does not allow nulls. - * A contact is considered unique by comparing using {@code Contact#isSamePerson(Contact)}. As such, adding and updating of - * persons uses Contact#isSamePerson(Contact) for equality so as to ensure that the contact being added or updated is + * A contact is considered unique by comparing using {@code Contact#isSamePerson(Contact)}. As such, adding and updating + * of persons uses Contact#isSamePerson(Contact) for equality so as to ensure that the contact being added or updated is * unique in terms of identity in the UniquePersonList. However, the removal of a contact uses Contact#equals(Object) so * as to ensure that the contact with exactly the same fields will be removed. * diff --git a/src/main/java/seedu/address/ui/PersonCard.java b/src/main/java/seedu/address/ui/PersonCard.java index 790c62347c5..b5a14eb1c4c 100644 --- a/src/main/java/seedu/address/ui/PersonCard.java +++ b/src/main/java/seedu/address/ui/PersonCard.java @@ -7,7 +7,6 @@ import javafx.scene.layout.FlowPane; import javafx.scene.layout.HBox; import javafx.scene.layout.Region; - import seedu.address.model.person.Contact; /**