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
Refactor code to extend from Main #14
Refactor code to extend from Main #14
Conversation
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.
Thanks for managing and identifying the classes that are specifically for the address book. This will help free up the section for the team to implement their own features for Travezy. Really appreciate the help!
@@ -3,34 +3,34 @@ | |||
|
|||
Actor User as user USER_COLOR | |||
Participant ":UI" as ui UI_COLOR | |||
Participant ":Logic" as logic LOGIC_COLOR | |||
Participant ":Logic" as addressBookLogic LOGIC_COLOR |
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.
Good use of addressBookLogic to differentiate that this variable was previously from adress book
@Override | ||
Optional<AddressBookUserPrefs> readUserPrefs() throws DataConversionException, IOException; | ||
|
||
@Override |
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.
Possible to add java docs explaining what the new overridden method does
|
||
/** | ||
* Represents an error which occurs during execution of a {@link Command}. | ||
* Represents an error which occurs during execution of a {@link seedu.main.logic.commands.Command}. |
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.
Good rewriting of the java docs comments to suit the current changes
import seedu.address.model.AddressBook; | ||
import seedu.address.testutil.TypicalPersons; | ||
import seedu.main.commons.exceptions.IllegalValueException; |
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.
I don't think there is a need to shift down the imports. Since the imports are meant to be sorted by alphabetical order. Hence, the imports with common should be at the first 2 lines
Great Job refactoring! |
Implementation to refactor code was largely confusing. |
No description provided.