Skip to content

Commit

Permalink
fix deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
artntek committed Oct 21, 2024
1 parent 4efebcb commit 5f5198a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/org/dataone/cn/indexer/IndexWorkerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void testInitExecutorService() throws Exception {
}
String propertyName = "index.thread.number";
String numberStr = "5";
int number = (new Integer(numberStr)).intValue();
int number = Integer.parseInt(numberStr);
// only test setting multiple threads if enough processors are available
if (finalThreads > number) {
Settings.getConfiguration().setProperty(propertyName, numberStr);
Expand All @@ -79,7 +79,7 @@ public void testInitExecutorService() throws Exception {
assertTrue(worker.multipleThread);
}
numberStr = "1";
number = (new Integer(numberStr)).intValue();
number = Integer.parseInt(numberStr);
Settings.getConfiguration().setProperty(propertyName, numberStr);
worker.initExecutorService();
System.out.println("worker.nThreads(1): " + worker.nThreads);
Expand Down

0 comments on commit 5f5198a

Please sign in to comment.