mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-24 17:34:57 +00:00
6cadf253ba
* 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