From cf8c1c4e5bd61dd7a3509c4cb39b94bb440a9f89 Mon Sep 17 00:00:00 2001 From: brinn <brinn> Date: Sat, 5 Jul 2008 23:48:22 +0000 Subject: [PATCH] fix: remove bad exception wrapping SVN: 7074 --- .../systemsx/cisd/common/process/CallableExecutor.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/common/source/java/ch/systemsx/cisd/common/process/CallableExecutor.java b/common/source/java/ch/systemsx/cisd/common/process/CallableExecutor.java index da03f2e9908..80692a633ff 100644 --- a/common/source/java/ch/systemsx/cisd/common/process/CallableExecutor.java +++ b/common/source/java/ch/systemsx/cisd/common/process/CallableExecutor.java @@ -50,7 +50,7 @@ public final class CallableExecutor * Executes given <var>callable</var> until it returns a non-<code>null</code> value (or * until <code>maxRetryOnFailure</code> is reached). */ - public final <T> T executeCallable(final Callable<T> callable) + public final <T> T executeCallable(final Callable<T> callable) throws StopException { int counter = 0; T result = null; @@ -62,13 +62,7 @@ public final class CallableExecutor result = callable.call(); if (counter > 0 && millisToSleepOnFailure > 0) { - try - { - Thread.sleep(millisToSleepOnFailure); - } catch (final InterruptedException ex) - { - throw new CheckedExceptionTunnel(ex); - } + Thread.sleep(millisToSleepOnFailure); } } while (counter++ < maxRetryOnFailure && result == null); } catch (final Exception ex) -- GitLab