Author: schor
Date: Mon Nov  2 18:17:08 2015
New Revision: 1712108

URL: http://svn.apache.org/viewvc?rev=1712108&view=rev
Log:
[UIMA-4674] update ref to method moved to Misc class

Modified:
    
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/test/java/org/apache/uima/cas/impl/CasPoolTest.java

Modified: 
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/test/java/org/apache/uima/cas/impl/CasPoolTest.java
URL: 
http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/test/java/org/apache/uima/cas/impl/CasPoolTest.java?rev=1712108&r1=1712107&r2=1712108&view=diff
==============================================================================
--- 
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/test/java/org/apache/uima/cas/impl/CasPoolTest.java
 (original)
+++ 
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/test/java/org/apache/uima/cas/impl/CasPoolTest.java
 Mon Nov  2 18:17:08 2015
@@ -25,9 +25,6 @@ import java.util.Properties;
 import java.util.Random;
 import java.util.concurrent.atomic.AtomicInteger;
 
-import junit.framework.Assert;
-import junit.framework.TestCase;
-
 import org.apache.uima.UIMAFramework;
 import org.apache.uima.analysis_engine.AnalysisEngine;
 import org.apache.uima.analysis_engine.AnalysisEngineDescription;
@@ -37,14 +34,17 @@ import org.apache.uima.impl.ChildUimaCon
 import org.apache.uima.impl.RootUimaContext_impl;
 import org.apache.uima.impl.UimaContext_ImplBase;
 import org.apache.uima.internal.util.MultiThreadUtils;
-import org.apache.uima.internal.util.Utilities;
 import org.apache.uima.resource.CasManager;
 import org.apache.uima.resource.ResourceInitializationException;
 import org.apache.uima.test.junit_extension.JUnitExtension;
 import org.apache.uima.util.InvalidXMLException;
+import org.apache.uima.util.Misc;
 import org.apache.uima.util.XMLInputSource;
 import org.apache.uima.util.XMLizable;
 
+import junit.framework.Assert;
+import junit.framework.TestCase;
+
 
 public class CasPoolTest extends TestCase {
 
@@ -80,7 +80,7 @@ public class CasPoolTest extends TestCas
   public void testMultiThread() throws Exception {
     final Properties p = new Properties();
     p.put(UIMAFramework.CAS_INITIAL_HEAP_SIZE,  200);   
-    int numberOfThreads = Math.min(50, Utilities.numberOfCores * 10);    
+    int numberOfThreads = Math.min(50, Misc.numberOfCores * 10);    
     final int casPoolSize = numberOfThreads / 3 ;
     System.out.format("test CasPools with %d threads and %d CASes",
         numberOfThreads, casPoolSize);


Reply via email to