From 60ef9d9b9bce71c0a9a41ff4ae9fc58d4ab5d0ad Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 15 Mar 2009 00:58:50 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20expose=20internal=20thread=20poo?= =?utf8?q?l.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/net/pterodactylus/jsite/core/Core.java | 8 -------- src/net/pterodactylus/jsite/core/CoreImpl.java | 8 +------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/net/pterodactylus/jsite/core/Core.java b/src/net/pterodactylus/jsite/core/Core.java index 27d87d9..968586c 100644 --- a/src/net/pterodactylus/jsite/core/Core.java +++ b/src/net/pterodactylus/jsite/core/Core.java @@ -22,7 +22,6 @@ package net.pterodactylus.jsite.core; import java.io.IOException; import java.net.UnknownHostException; import java.util.List; -import java.util.concurrent.Executor; /** * Interface for the core. @@ -48,13 +47,6 @@ public interface Core { public void removeCoreListener(CoreListener coreListener); /** - * Returns a thread pool. - * - * @return A thread pool - */ - public Executor getThreadPool(); - - /** * Adds the given node to the core. * * @param node diff --git a/src/net/pterodactylus/jsite/core/CoreImpl.java b/src/net/pterodactylus/jsite/core/CoreImpl.java index bc62a0b..6787cef 100644 --- a/src/net/pterodactylus/jsite/core/CoreImpl.java +++ b/src/net/pterodactylus/jsite/core/CoreImpl.java @@ -43,6 +43,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener, InsertList private final CoreListenerSupport coreListenerSupport = new CoreListenerSupport(); /** Thread pool. */ + @SuppressWarnings("unused") private Executor threadPool = Executors.newCachedThreadPool(); /** The project manager. */ @@ -84,13 +85,6 @@ public class CoreImpl implements Core, NodeListener, RequestListener, InsertList // /** - * {@inheritDoc} - */ - public Executor getThreadPool() { - return threadPool; - } - - /** * Returns the project manager. * * @return The project manager -- 2.7.4