google / google/auto

No generic factories

Open
#363 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.