Skip to content

Commit 57f1d01

Browse files
committed
refactor: update timePasses method in KingsHand
1 parent 83851a3 commit 57f1d01

File tree

1 file changed

+2
-1
lines changed
  • event-aggregator/src/main/java/com/iluwatar/event/aggregator

1 file changed

+2
-1
lines changed

event-aggregator/src/main/java/com/iluwatar/event/aggregator/KingsHand.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public void onEvent(Event e) {
4343

4444
@Override
4545
public void timePasses(Weekday day) {
46-
throw new UnsupportedOperationException("KingsHand does not support time passing");
46+
// This method is intentionally left empty because KingsHand does not handle time-based events directly.
47+
// It serves as a placeholder to fulfill the EventObserver interface contract.
4748
}
4849
}

0 commit comments

Comments
 (0)