Skip to content

Commit

Permalink
Fix style errors
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ-Lee01 committed Oct 5, 2023
1 parent a49c952 commit c7f1946
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/model/AddressBook.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/model/Model.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 0 additions & 1 deletion src/main/java/seedu/address/model/ReadOnlyAddressBook.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package seedu.address.model;

import javafx.collections.ObservableList;

import seedu.address.model.person.Contact;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
1 change: 0 additions & 1 deletion src/main/java/seedu/address/ui/PersonCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down

0 comments on commit c7f1946

Please sign in to comment.