Skip to content

Commit bb9ec12

Browse files
committed
Pathseparator fix, removed useless scheduler
1 parent feabc8c commit bb9ec12

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/process/EngineProcess.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class EngineProcess(parent: Lifetime, val project: Project) {
102102
val java =
103103
JdkInfoService.jdkInfoProvider.info.path.resolve("bin${File.separatorChar}${osSpecificJavaExecutable()}").toString()
104104
val cp = (this.javaClass.classLoader as PluginClassLoader).classPath.baseUrls.joinToString(
105-
separator = if (isWindows) ";" else ":",
105+
separator = File.pathSeparator,
106106
prefix = "\"",
107107
postfix = "\""
108108
)

utbot-rd/src/main/kotlin/org/utbot/rd/UtRdCoroutineScope.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ package org.utbot.rd
33
import com.jetbrains.rd.framework.util.RdCoroutineScope
44
import com.jetbrains.rd.framework.util.asCoroutineDispatcher
55
import com.jetbrains.rd.util.lifetime.Lifetime
6+
import com.jetbrains.rd.util.threading.SingleThreadScheduler
67

7-
private val coroutineDispatcher = UtSingleThreadScheduler("UtCoroutineScheduler").asCoroutineDispatcher
8+
private val coroutineDispatcher = SingleThreadScheduler(Lifetime.Eternal, "UtCoroutineScheduler").asCoroutineDispatcher
89

910
class UtRdCoroutineScope(lifetime: Lifetime) : RdCoroutineScope(lifetime) {
1011
companion object {

utbot-rd/src/main/kotlin/org/utbot/rd/UtSingleThreadScheduler.kt

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)