Skip to content

Commit

Permalink
Fix annotation fqName locator
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellogalhardo committed Sep 7, 2021
1 parent 50a2a2a commit a4779cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}'"
Expand Down

0 comments on commit a4779cb

Please sign in to comment.