Skip to content

Commit 2f8364a

Browse files
committed
retake on #55 missed fixing a method
1 parent 0c2a321 commit 2f8364a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sbt.Keys.{javacOptions, scalaVersion}
22

33
organization := "org.dmonix.functional"
4-
version := "1.11.1"
4+
version := "1.11.2"
55
name := "java-scala-utils"
66

77
libraryDependencies ++= Seq(

src/main/java/javascalautils/concurrent/Executors.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,11 @@ public static Executor create(java.util.concurrent.Executor threadPool) {
8989
* @return The created executor
9090
*/
9191
static Executor createDefaultExecutor() {
92-
Try<Executor> t = ReflectionUtil.newInstance(System.getProperty(ExecutorProviderClass));
93-
return t.getOrElse(
94-
() -> createCachedThreadPoolExecutor(new NamedSequenceThreadFactory("Executors-Default")));
92+
return createExecutorFromProvider(System.getProperty(ExecutorProviderClass))
93+
.getOrElse(
94+
() ->
95+
createCachedThreadPoolExecutor(
96+
new NamedSequenceThreadFactory("Executors-Default")));
9597
}
9698

9799
/**

0 commit comments

Comments
 (0)