No generic factories
Open
Component: factory
P3
type=defect
- Dominant language
- Java
- Stars
- 10.6k
- Forks
- 1.2k
- Avg merge
- 6h 32m
- Merged PRs (30d)
- 13
Description
```
@AutoFactory
class Foo {
Foo(@Provided Bar bar, Baz baz) {...}
}
```
turns into
```
class FooFactory {
...
Foo create(Baz baz) {
return new Foo(...);
}
}
```
where the generic parameter `T` is missing from the class declaration, the create() method return value type, and the Foo constructor call.
Contributor guide
Assessment
This issue has not been assessed yet.