You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by el...@apache.org on 2018/07/01 08:21:51 UTC

mina git commit: o Applied Guus's patch (DIRMINA-1088) o Fixed another small mistake with the maximumPoolSize check

Repository: mina
Updated Branches:
  refs/heads/2.0 a01bb9a2a -> dbf64b513


o Applied Guus's patch (DIRMINA-1088)
o Fixed another small mistake with the maximumPoolSize check

Project: http://git-wip-us.apache.org/repos/asf/mina/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina/commit/dbf64b51
Tree: http://git-wip-us.apache.org/repos/asf/mina/tree/dbf64b51
Diff: http://git-wip-us.apache.org/repos/asf/mina/diff/dbf64b51

Branch: refs/heads/2.0
Commit: dbf64b5132b587212668fa0ed681adf44e816c01
Parents: a01bb9a
Author: Emmanuel Lécharny <el...@symas.com>
Authored: Sun Jul 1 10:21:41 2018 +0200
Committer: Emmanuel Lécharny <el...@symas.com>
Committed: Sun Jul 1 10:21:41 2018 +0200

----------------------------------------------------------------------
 .../apache/mina/filter/executor/OrderedThreadPoolExecutor.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina/blob/dbf64b51/mina-core/src/main/java/org/apache/mina/filter/executor/OrderedThreadPoolExecutor.java
----------------------------------------------------------------------
diff --git a/mina-core/src/main/java/org/apache/mina/filter/executor/OrderedThreadPoolExecutor.java b/mina-core/src/main/java/org/apache/mina/filter/executor/OrderedThreadPoolExecutor.java
index da8333d..3f27419 100644
--- a/mina-core/src/main/java/org/apache/mina/filter/executor/OrderedThreadPoolExecutor.java
+++ b/mina-core/src/main/java/org/apache/mina/filter/executor/OrderedThreadPoolExecutor.java
@@ -192,13 +192,13 @@ public class OrderedThreadPoolExecutor extends ThreadPoolExecutor {
             throw new IllegalArgumentException("corePoolSize: " + corePoolSize);
         }
 
-        if ((maximumPoolSize == 0) || (maximumPoolSize < corePoolSize)) {
+        if ((maximumPoolSize <= 0) || (maximumPoolSize < corePoolSize)) {
             throw new IllegalArgumentException("maximumPoolSize: " + maximumPoolSize);
         }
 
         // Now, we can setup the pool sizes
-        super.setCorePoolSize(corePoolSize);
         super.setMaximumPoolSize(maximumPoolSize);
+        super.setCorePoolSize(corePoolSize);
 
         // The queueHandler might be null.
         if (eventQueueHandler == null) {