禁止在带有@BindView注释的字段上显示“ WeakerAccess”棉绒警告

Thi*_*ijs 5 java android android-lint android-studio butterknife

自然,尽管Android Lint不知道,但是ButterKnife字段不能声明为私有。但是,不是我的所有字段都像这样:

@SuppressWarnings("WeakerAccess") @BindView(R.id.foo) Bar mFoo;
Run Code Online (Sandbox Code Playgroud)

我喜欢更干净的方法

@BindView(R.id.foo) Bar mFoo;
Run Code Online (Sandbox Code Playgroud)

理想情况下,我想避免WeakerAccess对整个班级都取消警告,或者在我的检查配置文件中完全禁用它,因为这是有用的警告。

对于@BindView在Android Studio中使用注释的任何字段,是否有任何方法可以自动取消此警告?