https://kotlinlang.org logo
n

nemi

10/30/2018, 12:23 PM
However the following doing the same in java works correctly
Copy code
public class Bar {
    @BindView(R2.id.someText) TextView someText;

    public void bind(@NotNull Activity activity) {
        ButterKnife.bind(this, activity);
        if(someText == null) throw new IllegalStateException();
    }
}