File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
library/src/main/java/com/hannesdorfmann/adapterdelegates4 Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2121import java .util .List ;
2222
2323import androidx .annotation .NonNull ;
24+ import androidx .annotation .Nullable ;
2425import androidx .recyclerview .widget .RecyclerView ;
2526
2627/**
5859public abstract class AbsDelegationAdapter <T > extends RecyclerView .Adapter {
5960
6061 protected AdapterDelegatesManager <T > delegatesManager ;
61- protected T items ;
62+ @ Nullable protected T items ;
6263
6364 public AbsDelegationAdapter () {
6465 this (new AdapterDelegatesManager <T >());
@@ -128,6 +129,7 @@ public void onViewDetachedFromWindow(@NonNull RecyclerView.ViewHolder holder) {
128129 *
129130 * @return The items / data source
130131 */
132+ @ Nullable
131133 public T getItems () {
132134 return items ;
133135 }
@@ -137,7 +139,7 @@ public T getItems() {
137139 *
138140 * @param items The items / data source
139141 */
140- public void setItems (T items ) {
142+ public void setItems (@ Nullable T items ) {
141143 this .items = items ;
142144 }
143145}
You can’t perform that action at this time.
0 commit comments