Skip to content

Commit c8341c6

Browse files
committed
Session.setGame > Session.addGame
1 parent 65d2480 commit c8341c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/scorekeep/Session.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void setGames(Set<String> games) {
6666
public void clearGames() {
6767
this.games = null;
6868
}
69-
public void setGame(String game) {
69+
public void addGame(String game) {
7070
if ( games == null ) {
7171
games = new HashSet<String>();
7272
}

src/main/java/scorekeep/SessionController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public Session setOwner(@PathVariable String sessionId, @PathVariable String own
5757
@RequestMapping(value="/{sessionId}/game/{gameId}", method=RequestMethod.PUT)
5858
public void setSessionGame(@PathVariable String sessionId, @PathVariable String gameId) throws SessionNotFoundException, GameNotFoundException {
5959
Session session = sessionFactory.getSession(sessionId);
60-
session.setGame(gameId);
60+
session.addGame(gameId);
6161
model.saveSession(session);
6262
}
6363
}

0 commit comments

Comments
 (0)