Files
java-design-patterns/leader-followers/src
Kim Gi Uk 6cadf253ba fix: handle awaitTermination result and ensure proper ExecutorService shutdown (#3244)
* fix: handle awaitTermination result and ensure proper ExecutorService shutdown

- Added handling for the result of awaitTermination to avoid Sonar warning
- Wrapped ExecutorService with try-finally for proper shutdown (java:S2095)
- Prevents potential resource leak and aligns with best practices

Fixes: #2865

Note: ExecutorService is not AutoCloseable, so try-with-resources is not applicable. Used try-finally instead.

* fix: add missing logger definition for SLF4J

- Defined logger explicitly with LoggerFactory.getLogger(...)
- Ensured compatibility with Lombok's @Slf4j annotation
- Fixed compilation error caused by missing 'log' variable

* fix: add missing logger definition for SLF4J
2025-04-10 19:33:40 +03:00
..