From a4779cb6c171abadc445f09301d5d004ad7d5541 Mon Sep 17 00:00:00 2001 From: Marcello Galhardo Date: Tue, 7 Sep 2021 11:21:44 +0200 Subject: [PATCH] Fix annotation fqName locator --- .../deliveryhero/whetstone/compiler/BindingsModuleGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whetstone-compiler/src/main/java/com/deliveryhero/whetstone/compiler/BindingsModuleGenerator.kt b/whetstone-compiler/src/main/java/com/deliveryhero/whetstone/compiler/BindingsModuleGenerator.kt index b0069a3..4de38ef 100644 --- a/whetstone-compiler/src/main/java/com/deliveryhero/whetstone/compiler/BindingsModuleGenerator.kt +++ b/whetstone-compiler/src/main/java/com/deliveryhero/whetstone/compiler/BindingsModuleGenerator.kt @@ -42,7 +42,7 @@ public class BindingsModuleGenerator : CodeGenerator { var result: ModuleInfoProvider? = null for (annotation in clas.annotationEntries) { for (provider in providers) { - val classAnnotation = annotation.requireFqName(module) + val classAnnotation = annotation.fqNameOrNull(module) if (classAnnotation == provider.supportedAnnotation) { require(result == null) { "Found more than 1 Contributes* annotation in class '${clas.fqName}'"