From a5c8f8f6a59fb2ff2b4064f083dbb73c7ce9198e Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Fri, 10 Jul 2020 23:29:22 +0200 Subject: [PATCH] Fixed Bounded executor --- .../concurrency/executor/BoundedExecutorServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/warp/commonutils/concurrency/executor/BoundedExecutorServiceImpl.java b/src/main/java/org/warp/commonutils/concurrency/executor/BoundedExecutorServiceImpl.java index 4c37cd1..aa49413 100644 --- a/src/main/java/org/warp/commonutils/concurrency/executor/BoundedExecutorServiceImpl.java +++ b/src/main/java/org/warp/commonutils/concurrency/executor/BoundedExecutorServiceImpl.java @@ -48,7 +48,7 @@ class BoundedExecutorServiceImpl extends ThreadPoolExecutor implements BoundedEx */ @Override public Future submitButBlockIfFull(final Callable task) throws InterruptedException { - return super.submit(task); + return this.submit(task); } /** @@ -57,7 +57,7 @@ class BoundedExecutorServiceImpl extends ThreadPoolExecutor implements BoundedEx */ @Override public void executeButBlockIfFull(final Runnable task) throws InterruptedException { - super.execute(task); + this.execute(task); } private void blockIfFull() throws InterruptedException {