Skip to content

Commit

Permalink
Merge pull request #254 from AY2324S1-CS2103T-T10-3/revert-252-branch…
Browse files Browse the repository at this point in the history
…-v1.4
  • Loading branch information
ZD292 authored Nov 11, 2023
2 parents 4614e24 + 5f26e40 commit 3f914c8
Show file tree
Hide file tree
Showing 14 changed files with 107 additions and 1,813 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ public boolean equals(Object other) {
// state check
GroupRemarkCommand e = (GroupRemarkCommand) other;
return groupRemark.equals(e.groupRemark)
&& groupName.equals(e.groupName);
&& groupRemark.equals(e.groupName);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@ public class ListTimeGroupCommand extends ListTimeCommand {
+ "Please provide the group's full name as in the existing contactlist.";
private final Group group;

/**
* Constructor of ListTimeGroupCommand
*
* @param group Group to list time for.
*/
public ListTimeGroupCommand(Group group) {
requireNonNull(group);
this.group = group;
}
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@ public class ListTimePersonCommand extends ListTimeCommand {
+ "Please provide the person's full name as in the existing contactlist.";
private final Name personName;

/**
* Constructor of ListTimePersonCommand
*
* @param personName Name of person to list time for.
*/
public ListTimePersonCommand(Name personName) {
requireNonNull(personName);
this.personName = personName;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,12 @@ public boolean equals(Object other) {
return true;
}

if (!(other instanceof UngroupPersonCommand)) {
if (!(other instanceof GroupPersonCommand)) {
return false;
}

UngroupPersonCommand otherUngroupPersonCommand = (UngroupPersonCommand) other;
return this.personName.equals(otherUngroupPersonCommand.personName)
&& this.groupName.equals(otherUngroupPersonCommand.groupName);
return this.equals(otherUngroupPersonCommand);

}

Expand Down

This file was deleted.

Loading

0 comments on commit 3f914c8

Please sign in to comment.