mirror of
https://github.com/fankes/moshi.git
synced 2025-10-20 00:19:21 +08:00
Add generated code file comment. (#485)
This commit is contained in:
committed by
Jesse Wilson
parent
dbdf48777c
commit
083210eb40
@@ -92,6 +92,7 @@ internal class AdapterGenerator(
|
||||
}
|
||||
|
||||
val result = FileSpec.builder(className.packageName(), adapterName)
|
||||
result.addComment("Code generated by moshi-kotlin-codegen. Do not edit.")
|
||||
if (hasCompanionObject) {
|
||||
result.addFunction(generateJsonAdapterFun())
|
||||
}
|
||||
|
Reference in New Issue
Block a user