-
Notifications
You must be signed in to change notification settings - Fork 18
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
Group 1 - Petclinic refactoring WIP #21
base: master
Are you sure you want to change the base?
Group 1 - Petclinic refactoring WIP #21
Conversation
} | ||
} | ||
} | ||
private List<String> convert_csv_to_lines(String csv) |
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 like your idea to create function convert_csv_to_lines
and segment_line_to_entries
:)
Try to use one consistent naming notation (e.g., camel case)
} | ||
|
||
private boolean isSamePet(Pet pet1, Pet pet2) |
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 like that you did not use more than 2 indentations (except in this method isSamePet
but you would have improved this probably with more time)
List<Pet> pets = new LinkedList<Pet>(); | ||
Pet pet; | ||
|
||
do { | ||
pet = new Pet(); | ||
List<String> splitCSV = segment_line_to_entries(csv); |
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.
you could think about extracting this content to a new method to separate the responsibilities further
No description provided.