diff --git a/bundles/org.openhab.binding.cbus/src/main/java/org/openhab/binding/cbus/internal/CBusThreadPool.java b/bundles/org.openhab.binding.cbus/src/main/java/org/openhab/binding/cbus/internal/CBusThreadPool.java index 2c6cd71c8..a0f43c44c 100644 --- a/bundles/org.openhab.binding.cbus/src/main/java/org/openhab/binding/cbus/internal/CBusThreadPool.java +++ b/bundles/org.openhab.binding.cbus/src/main/java/org/openhab/binding/cbus/internal/CBusThreadPool.java @@ -14,7 +14,7 @@ package org.openhab.binding.cbus.internal; import java.util.HashMap; import java.util.Map; -import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.ExecutorService; import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; @@ -45,10 +45,10 @@ public class CBusThreadPool extends CGateThreadPool { } public class CBusThreadPoolExecutor extends CGateThreadPoolExecutor { - private final ThreadPoolExecutor threadPool; + private final ExecutorService threadPool; public CBusThreadPoolExecutor(@Nullable String poolName) { - threadPool = (ThreadPoolExecutor) ThreadPoolManager.getPool("binding.cbus-" + poolName); + threadPool = ThreadPoolManager.getPool("binding.cbus-" + poolName); } @Override