Skip to content

Commit

Permalink
Add Generated annotation to generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
fredboy committed May 14, 2024
1 parent d9211ab commit 4f3174f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ class GenerateMapMultibindingsSymbolProcessor(

val moduleObject = TypeSpec.objectBuilder(moduleName)
.addAnnotation(ClassName("dagger", "Module"))
.addAnnotation(
AnnotationSpec.builder(ClassName("javax.annotation.processing", "Generated"))
.addMember("value = [%S]", this::class.qualifiedName!!)
.build()
)
.addFunctions(bindings)
.build()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ class GenerateSetMultibindingsSymbolProcessor(

val moduleObject = TypeSpec.objectBuilder(moduleName)
.addAnnotation(ClassName("dagger", "Module"))
.addAnnotation(
AnnotationSpec.builder(ClassName("javax.annotation.processing", "Generated"))
.addMember("value = [%S]", this::class.qualifiedName!!)
.build()
)
.addFunctions(bindings)
.build()

Expand Down

0 comments on commit 4f3174f

Please sign in to comment.