From: David ‘Bombe’ Roden Date: Sat, 14 Mar 2009 23:58:50 +0000 (+0100) Subject: Don’t expose internal thread pool. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=60ef9d9b9bce71c0a9a41ff4ae9fc58d4ab5d0ad;p=jSite2.git Don’t expose internal thread pool. --- 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