Skip to content

Commit

Permalink
Reduce STDERR in AutoDetectTest (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek authored Dec 4, 2023
1 parent e4d16f2 commit adb6ee9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/test/java/org/openrewrite/kotlin/style/AutodetectTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -655,12 +655,12 @@ void detectImportCounts() {
import javax.xml.bind.annotation.XmlElement;
public class Test {
List<Integer> l;
Set<Integer> s;
Map<Integer, Integer> m;
Collection<Integer> c;
LinkedHashMap<Integer, Integer> lhm;
HashSet<Integer> integer;
var l : List<Integer>? = null
var s : Set<Integer>? = null
var m : Map<Integer, Integer>? = null
var c : Collection<Integer>? = null
var lhm : LinkedHashMap<Integer, Integer>? = null
var hs : HashSet<Integer>? = null
}
"""
);
Expand Down Expand Up @@ -721,7 +721,7 @@ void detectMethodArgsNoArgs() {
var cus = kp().parse(
"""
class Test {
void i() {
fun i() {
a();
}
}
Expand Down

0 comments on commit adb6ee9

Please sign in to comment.