Skip to content

Commit 0bf8f97

Browse files
committed
migrate some String to multi dollar string interpolation
1 parent 7a2c513 commit 0bf8f97

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api/parse.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ internal object Parsers : GlobalParserOptions {
348348
private val readJsonStrAnyFrame: ((text: String) -> AnyFrame)? by lazy {
349349
try {
350350
val klass = Class.forName("org.jetbrains.kotlinx.dataframe.io.JsonKt")
351-
val typeClashTactic = Class.forName("org.jetbrains.kotlinx.dataframe.io.JSON\$TypeClashTactic")
351+
val typeClashTactic = Class.forName($$"org.jetbrains.kotlinx.dataframe.io.JSON$TypeClashTactic")
352352
val readJsonStr = klass.getMethod(
353353
"readJsonStr",
354354
// this =

plugins/symbol-processor/src/test/kotlin/org/jetbrains/dataframe/ksp/DataFrameJdbcSymbolProcessorTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class DataFrameJdbcSymbolProcessorTest {
3030
import org.jetbrains.kotlinx.dataframe.*
3131
""".trimIndent()
3232

33-
const val GENERATED_FILE = "HelloJdbc${'$'}Extensions.kt"
33+
const val GENERATED_FILE = $$"HelloJdbc$Extensions.kt"
3434

3535
@JvmStatic
3636
@BeforeClass

plugins/symbol-processor/src/test/kotlin/org/jetbrains/dataframe/ksp/DataFrameSymbolProcessorTest.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class DataFrameSymbolProcessorTest {
2626
import org.jetbrains.kotlinx.dataframe.*
2727
""".trimIndent()
2828

29-
const val GENERATED_FILE = "Hello${'$'}Extensions.kt"
29+
const val GENERATED_FILE = $$"Hello$Extensions.kt"
3030
}
3131

3232
@Before
@@ -1187,11 +1187,11 @@ class DataFrameSymbolProcessorTest {
11871187
it.forAtLeastOne { it shouldContain "Pet" }
11881188
it.forAtLeastOne { it shouldContain "Error" }
11891189
}
1190-
result.inspectLines("org.example.Petstore.Pet\$Extensions.kt") {
1190+
result.inspectLines($$"org.example.Petstore.Pet$Extensions.kt") {
11911191
it.forAtLeastOne { it shouldContain "tag" }
11921192
it.forAtLeastOne { it shouldContain "id" }
11931193
}
1194-
result.inspectLines("org.example.Petstore.Error\$Extensions.kt") {
1194+
result.inspectLines($$"org.example.Petstore.Error$Extensions.kt") {
11951195
it.forAtLeastOne { it shouldContain "message" }
11961196
it.forAtLeastOne { it shouldContain "code" }
11971197
}
@@ -1307,11 +1307,11 @@ class DataFrameSymbolProcessorTest {
13071307
it.forAtLeastOne { it shouldContain "readJson" }
13081308
it.forAtLeastOne { it shouldContain "readJsonStr" }
13091309
}
1310-
result.inspectLines("org.example.Petstore.Pet\$Extensions.kt") {
1310+
result.inspectLines($$"org.example.Petstore.Pet$Extensions.kt") {
13111311
it.forAtLeastOne { it shouldContain "tag" }
13121312
it.forAtLeastOne { it shouldContain "id" }
13131313
}
1314-
result.inspectLines("org.example.Petstore.Error\$Extensions.kt") {
1314+
result.inspectLines($$"org.example.Petstore.Error$Extensions.kt") {
13151315
it.forAtLeastOne { it shouldContain "message" }
13161316
it.forAtLeastOne { it shouldContain "code" }
13171317
}

0 commit comments

Comments
 (0)