package butterknife.lint;

import com.android.tools.lint.client.api.IssueRegistry;
import com.android.tools.lint.detector.api.Issue;
import com.google.common.collect.ImmutableList;
import java.util.List;

/**
 * Contains references to all custom lint checks for butterknife.
 */
public class LintRegistry extends IssueRegistry {

  @Override public List<Issue> getIssues() {
    return ImmutableList.of(InvalidR2UsageDetector.ISSUE);
  }
}

package butterknife.lint;

import com.android.tools.lint.client.api.IssueRegistry;
import com.android.tools.lint.detector.api.ApiKt;
import com.android.tools.lint.detector.api.Issue;
import com.google.common.collect.ImmutableList;
import java.util.List;

/**
 * Contains references to all custom lint checks for butterknife.
 */
public class LintRegistry extends IssueRegistry {

  @Override public List<Issue> getIssues() {
    return ImmutableList.of(InvalidR2UsageDetector.ISSUE);
  }

  @Override public int getApi() {
    return ApiKt.CURRENT_API;
  }
}

Update Lint checks to new APIs