mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 16:09:21 +08:00
Opportunistic - suppress RedundantExplicitType
This commit is contained in:
@@ -73,6 +73,9 @@ internal class AdapterGenerator(
|
|||||||
// Because we generate redundant `out` variance for some generics and there's no way
|
// Because we generate redundant `out` variance for some generics and there's no way
|
||||||
// for us to know when it's redundant.
|
// for us to know when it's redundant.
|
||||||
"REDUNDANT_PROJECTION",
|
"REDUNDANT_PROJECTION",
|
||||||
|
// Because we may generate redundant explicit types for local vars with default values.
|
||||||
|
// Example: 'var fooSet: Boolean = false'
|
||||||
|
"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"
|
||||||
|
Reference in New Issue
Block a user