Don’t expose internal thread pool.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 14 Mar 2009 23:58:50 +0000 (00:58 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 15 Mar 2009 00:00:03 +0000 (01:00 +0100)
src/net/pterodactylus/jsite/core/Core.java
src/net/pterodactylus/jsite/core/CoreImpl.java

index 27d87d9..968586c 100644 (file)
@@ -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
index bc62a0b..6787cef 100644 (file)
@@ -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