Closed traceyyoshima closed 11 months ago
@Test void addImport() { rewriteRun( spec -> spec.recipe(importTypeRecipe("java.util.List")), kotlin( """ @file:Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN") class A """, """ @file:Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN") import java.util.List class A """ ) ); }
IntelliJ format this to add two new lines before the import, so we might want to update the test case above.
@file:Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN") import java.util.List class C