Skip to content

Commit 560b5a0

Browse files
committed
feat: update room builder
Signed-off-by: Otavio Santana <[email protected]>
1 parent 410713e commit 560b5a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/soujava/demos/mongodb/document/RoomBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public RoomBuilder underMaintenance(boolean underMaintenance) {
4444
return this;
4545
}
4646

47-
public Room createRoom() {
47+
public Room build() {
4848
return new Room(id, roomNumber, type, status, cleanStatus, smokingAllowed, underMaintenance);
4949
}
5050
}

0 commit comments

Comments
 (0)