Skip to content

Commit 237a466

Browse files
committed
KTL-79 Removed unnecessary escaping of <>& chars
1 parent e31d22d commit 237a466

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

src/main/kotlin/com/compiler/server/executor/JavaExecutor.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.compiler.server.executor
22

33
import com.compiler.server.model.ProgramOutput
4-
import com.compiler.server.utils.escapeString
54
import org.springframework.stereotype.Component
65
import java.io.BufferedReader
76
import java.io.IOException
@@ -85,7 +84,7 @@ class JavaExecutor {
8584
try {
8685
while (output.length < limit) {
8786
val line = standardOut.readLine() ?: break
88-
output.appendLine(escapeString(line))
87+
output.appendLine(line)
8988
}
9089
} catch (_: Exception) {
9190
// something happened with the stream. Just return what we've collected so far

src/main/kotlin/com/compiler/server/utils/UtilsFunctions.kt

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

src/test/kotlin/com/compiler/server/KotlinFeatureSince160.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class KotlinFeatureSince160 : BaseExecutorTest() {
5252
//sampleEnd
5353
}
5454
""".trimIndent(),
55-
contains = "<outStream>brown&amp;blue\n</outStream>"
55+
contains = "<outStream>brown&blue\n</outStream>"
5656
)
5757
}
5858

0 commit comments

Comments
 (0)