-
Notifications
You must be signed in to change notification settings - Fork 249
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
[T6A3][F11-C3] Le Minh Duc #848
base: master
Are you sure you want to change the base?
Conversation
… class' own method prepare() (which overrides the parent's class prepare() method)
…om parser and put them inside the appropriate PreparedCommand classes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@acuodancer Please review and close PR. I believe you had tried to make parser OCP compliant. Please also try implementing DI and DIP.
@@ -2,6 +2,7 @@ | |||
|
|||
import seedu.addressbook.commands.*; | |||
import seedu.addressbook.data.exception.IllegalValueException; | |||
import seedu.addressbook.preparedcommands.PreparedCommand; | |||
|
|||
import java.util.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolve imports properly. It is easy to do with eclipse shortcut.
switch (commandWord) { | ||
PreparedCommand pc = new PreparedCommand(arguments); | ||
return pc.prepare(); | ||
/*switch (commandWord) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't comment out code that is not being used. It is an ugly practice when a revision control system such as git is available. We can simply revert a change if it doesn't work. So, if you want to remove / move a chunk of of code commit after doing so to create a point to which you can revert to, if you wish so later.
No description provided.