Fix GeneratedAnnotation member definition

Before this was just adding both as varargs of "value"
This commit is contained in:
Zac Sweers
2018-06-15 22:09:13 -07:00
parent 03ada87e90
commit c9aee2e853

View File

@@ -106,8 +106,8 @@ internal class AdapterGenerator(
generatedOption?.let { generatedOption?.let {
result.addAnnotation(AnnotationSpec.builder(it.asClassName()) result.addAnnotation(AnnotationSpec.builder(it.asClassName())
.addMember("%S", JsonClassCodegenProcessor::class.java.canonicalName) .addMember("value = [%S]", JsonClassCodegenProcessor::class.java.canonicalName)
.addMember("%S", "https://github.com/square/moshi") .addMember("comments = %S", "https://github.com/square/moshi")
.build()) .build())
} }