You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by bo...@apache.org on 2016/03/13 02:11:57 UTC

tika git commit: TIKA-1900 - Max Pool size must be set before core pool size in java 9.

Repository: tika
Updated Branches:
  refs/heads/master bf2d40543 -> a1243c7ab


TIKA-1900 - Max Pool size must be set before core pool size in java 9.

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

Branch: refs/heads/master
Commit: a1243c7abcb7068c944d3f8699d8eb08c75228a9
Parents: bf2d405
Author: Bob Paulin <bo...@apache.org>
Authored: Sat Mar 12 19:10:00 2016 -0600
Committer: Bob Paulin <bo...@apache.org>
Committed: Sat Mar 12 19:11:21 2016 -0600

----------------------------------------------------------------------
 .../main/java/org/apache/tika/config/TikaConfig.java    | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tika/blob/a1243c7a/tika-core/src/main/java/org/apache/tika/config/TikaConfig.java
----------------------------------------------------------------------
diff --git a/tika-core/src/main/java/org/apache/tika/config/TikaConfig.java b/tika-core/src/main/java/org/apache/tika/config/TikaConfig.java
index 17f36e0..7b943f2 100644
--- a/tika-core/src/main/java/org/apache/tika/config/TikaConfig.java
+++ b/tika-core/src/main/java/org/apache/tika/config/TikaConfig.java
@@ -846,16 +846,18 @@ public class TikaConfig {
         @Override
         ConfigurableThreadPoolExecutor decorate(ConfigurableThreadPoolExecutor created, Element element)
                 throws IOException, TikaException {
-            Element coreThreadElement = getChild(element, "core-threads");
-            if(coreThreadElement != null)
-            {
-                created.setCorePoolSize(Integer.parseInt(getText(coreThreadElement)));
-            }
+            
             Element maxThreadElement = getChild(element, "max-threads");
             if(maxThreadElement != null)
             {
                 created.setMaximumPoolSize(Integer.parseInt(getText(maxThreadElement)));
             }
+            
+            Element coreThreadElement = getChild(element, "core-threads");
+            if(coreThreadElement != null)
+            {
+                created.setCorePoolSize(Integer.parseInt(getText(coreThreadElement)));
+            }
             return created;
         }