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