Replace appendln with appendLine in project
This commit is contained in:
@@ -32,7 +32,7 @@ class ServiceLoaderLiteTest : AbstractServiceLoaderLiteTest() {
|
||||
}
|
||||
|
||||
fun testSeveralProcessors() {
|
||||
val processorsContent = buildString { appendln("test.Foo").appendln("test.Bar") }
|
||||
val processorsContent = buildString { appendLine("test.Foo").appendLine("test.Bar") }
|
||||
|
||||
applyForDirAndJar("test", processors(processorsContent)) { file ->
|
||||
val impls = ServiceLoaderLite.findImplementations(Processor::class.java, listOf(file))
|
||||
@@ -98,11 +98,11 @@ class ServiceLoaderLiteTest : AbstractServiceLoaderLiteTest() {
|
||||
|
||||
fun testCommentsAndWhitespaces() {
|
||||
val processorsContent = buildString {
|
||||
appendln(" test.Foo #comment")
|
||||
appendln("#comment2")
|
||||
appendln().appendln()
|
||||
appendln("test.Bar #anotherComemnt")
|
||||
appendln("test.Zoo ")
|
||||
appendLine(" test.Foo #comment")
|
||||
appendLine("#comment2")
|
||||
appendLine().appendLine()
|
||||
appendLine("test.Bar #anotherComemnt")
|
||||
appendLine("test.Zoo ")
|
||||
}
|
||||
|
||||
applyForDirAndJar("test", processors(processorsContent)) { file ->
|
||||
|
||||
+1
-1
@@ -127,7 +127,7 @@ class ServiceLoaderLiteTestWithClassLoader : AbstractServiceLoaderLiteTest() {
|
||||
private inline fun <reified Intf : Any> impls(vararg impls: KClass<out Intf>): Entry {
|
||||
val content = buildString {
|
||||
for (impl in impls) {
|
||||
appendln(impl.java.name)
|
||||
appendLine(impl.java.name)
|
||||
}
|
||||
}
|
||||
return Entry("META-INF/services/" + Intf::class.java.name, content)
|
||||
|
||||
Reference in New Issue
Block a user