Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bugs #273

Merged
merged 16 commits into from Nov 10, 2019
Merged

fix bugs #273

merged 16 commits into from Nov 10, 2019

Conversation

calvincxz
Copy link

No description provided.


public DeallocateCommand(Index eventIndex) {
this.eventIndex = eventIndex;
this.employeeId = null;
}

public DeallocateCommand(Index eventIndex, String employeeId) {
public DeallocateCommand(Index eventIndex, EmployeeId employeeId) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good fix

return eventIndex.equals(e.eventIndex)
&& employeeId.equals(e.employeeId);
&& (employeeId == e.employeeId || employeeId.equals(e.employeeId));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not just employeeId.equals(e.employeeId)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cos have null~~

@@ -98,10 +98,10 @@ public EventDateTimeMap getEventDateTimeMap() {
* Checks if an employee is available for this event.
*
* @param employee to check
* @param filteredEventList a complete event list.
* @param fullEventList a complete event list.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think its missing a @return

} else {
return false;
}
return MainWindow.getCurrentTabIndex() == 0;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opps thanks for the catch LOL

@calvincxz calvincxz merged commit f8b2eef into master Nov 10, 2019
@DivineDX DivineDX deleted the calvin_branch branch November 11, 2019 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants