Shut eclipse compiler up

This commit is contained in:
Trustin Lee 2009-03-04 10:54:00 +00:00
parent 39ec19078c
commit f04ca5b970

View File

@ -185,6 +185,10 @@ public class OrderedMemoryAwareThreadPoolExecutor extends
return super.shouldCount(task); return super.shouldCount(task);
} }
void onAfterExecute(Runnable r, Throwable t) {
afterExecute(r, t);
}
private final class ChildExecutor implements Executor, Runnable { private final class ChildExecutor implements Executor, Runnable {
private final LinkedList<Runnable> tasks = new LinkedList<Runnable>(); private final LinkedList<Runnable> tasks = new LinkedList<Runnable>();
@ -217,10 +221,10 @@ public class OrderedMemoryAwareThreadPoolExecutor extends
try { try {
task.run(); task.run();
ran = true; ran = true;
afterExecute(task, null); onAfterExecute(task, null);
} catch (RuntimeException e) { } catch (RuntimeException e) {
if (!ran) { if (!ran) {
afterExecute(task, e); onAfterExecute(task, e);
} }
throw e; throw e;
} finally { } finally {