Skip to content

Commit bba1a63

Browse files
committed
Polish
1 parent 83b9fd7 commit bba1a63

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rewrite-kotlin/src/main/kotlin/org/openrewrite/kotlin/KotlinTypeMapping.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,10 +682,10 @@ class KotlinTypeMapping(
682682
return null
683683
}
684684
val signature = signatureBuilder.methodCallSignature(fir)
685-
/*val existing = typeCache.get<Method>(signature)
685+
val existing = typeCache.get<Method>(signature)
686686
if (existing != null) {
687687
return existing
688-
}*/
688+
}
689689
return methodInvocationType(fir, signature)
690690
}
691691

rewrite-kotlin/src/test/java/org/openrewrite/kotlin/tree/KTSTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fun two() = "two"
5454
kotlinScript(
5555
"""
5656
import org.example.one
57-
one("foo")
57+
one()
5858
""",
5959
spec -> spec.afterRecipe(cu -> {
6060
assertThat(cu.getTypesInUse().getUsedMethods())

0 commit comments

Comments
 (0)