Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shashachu committed Apr 24, 2019
1 parent 59621e0 commit 0ba9b1a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
class A {
private fun getImplementationVersion() =
javaClass.`package`.implementationVersion
?: javaClass.getResourceAsStream("/META-INF/MANIFEST.MF")
?.let { stream ->
Manifest(stream).mainAttributes.getValue("Implementation-Version")
}
private fun getImplementationVersion() = javaClass.`package`.implementationVersion
?: javaClass.getResourceAsStream("/META-INF/MANIFEST.MF")
?.let { stream ->
Manifest(stream).mainAttributes.getValue("Implementation-Version")
}

fun f() {
x()?.apply {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,19 @@ class C {
}

fun f() {
val x =
"a" +
"b2"
val x = "a" +
"b2"
val x =
"a" +
"b2"

val x =
paths.flatMap { dir ->
"hello"
} + f0(
"there"
) + f1(
"sssss"
)
val x = paths.flatMap { dir ->
"hello"
} + f0(
"there"
) + f1(
"sssss"
)

fun Exception.toLintError(): LintError = this.let { e ->
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
class C {

private val Any.className
get() =
this.javaClass.name
.fn()
get() = this.javaClass.name
.fn()

private fun String.escape() =
this.fn()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,10 @@ fun f() {
}

class C {
val CONFIG_COMPACT =
"""
{
}
""".trimIndent()
val CONFIG_COMPACT = """
{
}
""".trimIndent()
val CONFIG_COMPACT = // comment
"""
{
Expand Down

0 comments on commit 0ba9b1a

Please sign in to comment.