Skip to content

Commit 9439c8f

Browse files
committed
Some small stylistic tweaks to the vmArguments params
1 parent 5cf11fc commit 9439c8f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

adapter/src/main/kotlin/org/javacs/ktda/adapter/KotlinDebugAdapter.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,15 @@ class KotlinDebugAdapter(
9898
val mainClass = (args["mainClass"] as? String)
9999
?: throw missingRequestArgument("launch", "mainClass")
100100

101-
val vmArguments:String? = (args["vmArguments"] as? String)
101+
val vmArguments = (args["vmArguments"] as? String) ?: ""
102102

103103
setupCommonInitializationParams(args)
104104

105105
val config = LaunchConfiguration(
106106
debugClassPathResolver(listOf(projectRoot)).classpathOrEmpty,
107107
mainClass,
108108
projectRoot,
109-
vmArguments ?: ""
109+
vmArguments
110110
)
111111
debuggee = launcher.launch(
112112
config,

adapter/src/main/kotlin/org/javacs/ktda/jdi/launch/JDILauncher.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ class JDILauncher(
8383
.collect(Collectors.toSet())
8484

8585
private fun formatOptions(config: LaunchConfiguration): String {
86-
var options = ""
87-
options += config.vmArguments
86+
var options = config.vmArguments
8887
modulePaths?.let { options += " --module-path \"$modulePaths\"" }
8988
options += " -classpath \"${formatClasspath(config)}\""
9089
return options

0 commit comments

Comments
 (0)