Skip to content

Commit

Permalink
Issue #254: CPE worker threads should inherit TCCL from control thread
Browse files Browse the repository at this point in the history
-
  • Loading branch information
reckart committed Oct 14, 2022
1 parent e063329 commit fea3e57
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import java.beans.Introspector;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
Expand Down Expand Up @@ -185,8 +186,10 @@ protected void _initialize() throws Exception {

// read performance tuning properties
mDefaultPerformanceTuningProperties = new Properties();
mDefaultPerformanceTuningProperties
.load(UIMAFramework_impl.class.getResourceAsStream("performanceTuning.properties"));
try (InputStream is = UIMAFramework_impl.class
.getResourceAsStream("performanceTuning.properties")) {
mDefaultPerformanceTuningProperties.load(is);
}

// create new HashMap for the LogWrappers
mLoggers = new ConcurrentHashMap<>(200, 1.0f);
Expand Down

0 comments on commit fea3e57

Please sign in to comment.