288a1c5ac34459864abf9ef1e75d19b25bc5350f
Test-driven fixes for code review blockers NCS-16: **Observable (CRITICAL):** Added synchronized blocks to subscribe, unsubscribe, notifyObservers, and observerCount to prevent race conditions when concurrent threads register observers while notifications are dispatched. **CommandInvoker (IMPORTANT):** Added synchronized blocks to all methods (execute, undo, redo, history, getCurrentIndex, canUndo, canRedo, clear) to ensure atomic access to mutable state (executedCommands, currentIndex). Tests: - Added ObservableThreadSafetyTest: 3 tests for concurrent subscribe/unsubscribe/notify - Added CommandInvokerThreadSafetyTest: 2 tests for concurrent execute/undo/redo - All 54 existing tests remain green - Full build passes with 100% core coverage Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Description
No description provided
Languages
Scala
83.1%
Python
12.2%
Bru
2.7%
Jupyter Notebook
0.8%
HTML
0.7%
Other
0.4%