mirror of
https://github.com/fankes/moshi.git
synced 2025-10-20 00:19:21 +08:00
Omit unnecessary generic type from standard constructor call (#1041)
These were redundant. Was `return Foo<T>(...)` and is now `return Foo(...)`
This commit is contained in:
@@ -411,8 +411,8 @@ internal class AdapterGenerator(
|
||||
localConstructorProperty
|
||||
)
|
||||
} else {
|
||||
// Standard constructor call
|
||||
result.addCode("«%L%T(", returnOrResultAssignment, originalTypeName)
|
||||
// Standard constructor call. Can omit generics as they're inferred
|
||||
result.addCode("«%L%T(", returnOrResultAssignment, originalTypeName.rawType())
|
||||
}
|
||||
|
||||
for (input in components.filterIsInstance<ParameterComponent>()) {
|
||||
|
Reference in New Issue
Block a user