From 0b734a0e721ee10529c01ef0f344baa0eb616358 Mon Sep 17 00:00:00 2001 From: Elizabeth Worstell Date: Fri, 3 Nov 2023 16:19:56 -0700 Subject: [PATCH] fix Method.Method.X codegen import bug --- .../src/main/kotlin/xyz/block/ftl/generator/ModuleGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin-runtime/ftl-generator/src/main/kotlin/xyz/block/ftl/generator/ModuleGenerator.kt b/kotlin-runtime/ftl-generator/src/main/kotlin/xyz/block/ftl/generator/ModuleGenerator.kt index c86e8ff1e8..5d01ce63d8 100644 --- a/kotlin-runtime/ftl-generator/src/main/kotlin/xyz/block/ftl/generator/ModuleGenerator.kt +++ b/kotlin-runtime/ftl-generator/src/main/kotlin/xyz/block/ftl/generator/ModuleGenerator.kt @@ -109,7 +109,7 @@ class ModuleGenerator() { metadata.ingress?.let { verbFunBuilder.addAnnotation( AnnotationSpec.builder(Ingress::class) - .addMember("%T", ClassName("xyz.block.ftl.Method", it.method)) + .addMember("%T", ClassName("xyz.block.ftl.Method", it.method.replaceBefore(".", ""))) .addMember("%S", it.path) .build() )