mirror of
https://github.com/fankes/moshi.git
synced 2025-10-18 23:49:21 +08:00
Suppress RedundantVisibilityModifier in generated adapters (#1303)
This commit is contained in:
@@ -80,7 +80,9 @@ internal class AdapterGenerator(
|
||||
"RedundantExplicitType",
|
||||
// NameAllocator will just add underscores to differentiate names, which Kotlin doesn't
|
||||
// like for stylistic reasons.
|
||||
"LocalVariableName"
|
||||
"LocalVariableName",
|
||||
// KotlinPoet always generates explicit public modifiers for public members.
|
||||
"RedundantVisibilityModifier"
|
||||
).let { suppressions ->
|
||||
AnnotationSpec.builder(Suppress::class)
|
||||
.addMember(
|
||||
|
Reference in New Issue
Block a user