-
Notifications
You must be signed in to change notification settings - Fork 5
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
Implement link command #82
Implement link command #82
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.
Looks great! 👍
// manually link first class to first student | ||
ModuleClass moduleClass = model.getFilteredModuleClassList().get(0); | ||
Student student = model.getFilteredStudentList().get(0); | ||
Set<UUID> studentUuids = new HashSet<>(moduleClass.getStudentUuids()); | ||
studentUuids.add(student.getUuid()); | ||
ModuleClass modifiedModuleClass = new ModuleClass(moduleClass.getName(), studentUuids); |
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.
would it be better to leave a line here?
// manually link first class to first student | |
ModuleClass moduleClass = model.getFilteredModuleClassList().get(0); | |
Student student = model.getFilteredStudentList().get(0); | |
Set<UUID> studentUuids = new HashSet<>(moduleClass.getStudentUuids()); | |
studentUuids.add(student.getUuid()); | |
ModuleClass modifiedModuleClass = new ModuleClass(moduleClass.getName(), studentUuids); | |
// manually link first class to first student | |
ModuleClass moduleClass = model.getFilteredModuleClassList().get(0); | |
Student student = model.getFilteredStudentList().get(0); | |
Set<UUID> studentUuids = new HashSet<>(moduleClass.getStudentUuids()); | |
studentUuids.add(student.getUuid()); | |
ModuleClass modifiedModuleClass = new ModuleClass(moduleClass.getName(), studentUuids); |
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 think for this case, it would be okay to not include an empty line above the comment since it is the first line in the method body. It will also be more in line with existing code.
7bcf0c1
to
6be4032
Compare
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.
Nice work!
6be4032
to
58e135b
Compare
Resolves #86.
Closes #28.