You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.
Where we have a class being injected which is extending a generic super type such as that shown here:
@Singleton
public class WebClient extends BaseWebClient<Void> {
@Inject
public WebClient() { }
}
Compile time warnings are shown for the generated files used for injection such as those shown here:
public final class WebClient$$InjectAdapter extends Binding<WebClient>
implements Provider<WebClient>, MembersInjector<WebClient> {
private Binding<BaseWebClient> supertype;
public WebClient$$InjectAdapter() {
super("com.example.WebClient", "members/com.example..WebClient", IS_SINGLETON, WebClient.class);
}
/**
* Used internally to link bindings/providers together at run time
* according to their dependency graph.
*/
@Override
@SuppressWarnings("unchecked")
public void attach(Linker linker) {
supertype = (Binding<BaseWebClient>) linker.requestBinding("members/com.example.BaseWebClient", WebClient.class, getClass().getClassLoader(), false, true);
}
}
Where private Binding<BaseWebClient> supertype; and supertype = (Binding<BaseWebClient>) have warnings stating:
BaseWebClient is a raw type. References to generic type BaseWebClient<Result> should be parameterized WebClient$$InjectAdapter.java
The text was updated successfully, but these errors were encountered:
Where we have a class being injected which is extending a generic super type such as that shown here:
Compile time warnings are shown for the generated files used for injection such as those shown here:
Where
private Binding<BaseWebClient> supertype;
andsupertype = (Binding<BaseWebClient>)
have warnings stating:The text was updated successfully, but these errors were encountered: