From adb6ee98a7abd8e9331d1f7e015e398202ae536e Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Mon, 4 Dec 2023 20:28:22 +0100 Subject: [PATCH] Reduce STDERR in AutoDetectTest (#499) --- .../kotlin/style/AutodetectTest.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/test/java/org/openrewrite/kotlin/style/AutodetectTest.java b/src/test/java/org/openrewrite/kotlin/style/AutodetectTest.java index 1636edc8f..55a2b0fb7 100644 --- a/src/test/java/org/openrewrite/kotlin/style/AutodetectTest.java +++ b/src/test/java/org/openrewrite/kotlin/style/AutodetectTest.java @@ -248,7 +248,7 @@ fun visitIdentifier(ident: Int, ctx: String): String { var i = visitIdentifier(ident, ctx) if (true - && true)) { + && true) { i = visitIdentifier(ident, ctx) .visitIdentifier(ident, ctx) } @@ -368,7 +368,7 @@ void mixedTabAndWhiteSpacesIndentsWithTabSize4AndUseTabIsFalse() { * */ class Test { - private final publisher: String = "A" + private val publisher: String = "A" public fun method() { val value = 0; val value1 = 1; @@ -425,7 +425,7 @@ void mixedTabAndWhiteSpacesIndentsWithTabSize4WithSomeErrors() { * */ public class Test { - private final publisher: String = "A" + private val publisher: String = "A" public fun method() { var value = 0 var value1 = 1 @@ -655,12 +655,12 @@ void detectImportCounts() { import javax.xml.bind.annotation.XmlElement; public class Test { - List l; - Set s; - Map m; - Collection c; - LinkedHashMap lhm; - HashSet integer; + var l : List? = null + var s : Set? = null + var m : Map? = null + var c : Collection? = null + var lhm : LinkedHashMap? = null + var hs : HashSet? = null } """ ); @@ -721,7 +721,7 @@ void detectMethodArgsNoArgs() { var cus = kp().parse( """ class Test { - void i() { + fun i() { a(); } }