public class A {
@Inject
public A(Integer integer) {
}
}
public class B {
@Inject
A a;
}
public class Main {
public static void main(String[] args) {
DaggerMyComponent.create().mySubcomponentBuider().integer(42).build().inject(new B());
}
}
This code produces next error:
error: cannot find symbol this.integerProvider = InstanceFactory.create(builder.integer);
Because it tries to get integer from the builder interface, not the implementation.
This code produces next error:
Because it tries to get integer from the builder interface, not the implementation.
Code here