aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/concurrent/BlockingThreadPool.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/concurrent/BlockingThreadPool.java')
-rw-r--r--main/src/cgeo/geocaching/concurrent/BlockingThreadPool.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/concurrent/BlockingThreadPool.java b/main/src/cgeo/geocaching/concurrent/BlockingThreadPool.java
index 8e60d44..a6d7e9b 100644
--- a/main/src/cgeo/geocaching/concurrent/BlockingThreadPool.java
+++ b/main/src/cgeo/geocaching/concurrent/BlockingThreadPool.java
@@ -27,7 +27,7 @@ public class BlockingThreadPool {
*/
public BlockingThreadPool(int poolSize, int priority) {
ThreadFactory threadFactory = new PriorityThreadFactory(priority);
- this.queue = new ArrayBlockingQueue<Runnable>(poolSize, true);
+ this.queue = new ArrayBlockingQueue<>(poolSize, true);
this.executor = new ThreadPoolExecutor(0, poolSize, 5, TimeUnit.SECONDS, this.queue);
this.executor.setThreadFactory(threadFactory);
}