Skip to content

Commit 1639e43

Browse files
committed
Adding java doc for getGroup method
1 parent 75245f8 commit 1639e43

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

splitwise/src/main/java/com/example/splitwise/controller/GroupController.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@ public void createNewGroup(String groupId, String groupName, User createdByUser)
2828
groupList.add(group);
2929
}
3030

31+
/**
32+
* Controller method to get group
33+
* @param groupId {@link String}
34+
* @return {@link Group}
35+
*/
3136
public Group getGroup(String groupId){
32-
3337
for(Group group: groupList) {
34-
3538
if(group.getGroupId().equals(groupId)){
3639
return group;
3740
}

0 commit comments

Comments
 (0)