Skip to content

Commit

Permalink
Supplied two NonNull annotations to onBindViewHolder methods
Browse files Browse the repository at this point in the history
  • Loading branch information
drakeet committed Mar 9, 2018
1 parent 700da1d commit bbd1921
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -231,13 +231,13 @@ public final ViewHolder onCreateViewHolder(ViewGroup parent, int indexViewType)
* instead.
*/
@Override @Deprecated
public final void onBindViewHolder(ViewHolder holder, int position) {
public final void onBindViewHolder(@NonNull ViewHolder holder, int position) {
onBindViewHolder(holder, position, Collections.emptyList());
}


@Override @SuppressWarnings("unchecked")
public final void onBindViewHolder(ViewHolder holder, int position, List<Object> payloads) {
public final void onBindViewHolder(ViewHolder holder, int position, @NonNull List<Object> payloads) {
Object item = items.get(position);
ItemViewBinder binder = typePool.getItemViewBinder(holder.getItemViewType());
binder.onBindViewHolder(holder, item, payloads);
Expand Down

0 comments on commit bbd1921

Please sign in to comment.