Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Commit

Permalink
Make some inner classes static
Browse files Browse the repository at this point in the history
This avoids an implicit this field and can help GC.  Found via
error-prone.
  • Loading branch information
gaul authored and mTwTm committed Jan 29, 2018
1 parent ed32d8f commit 68fbcc7
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -375,7 +375,7 @@ public int mappingIcon(DownloadInfo downloadInfo) {
}
}

public class DownloadViewHolder extends RecyclerView.ViewHolder {
public static class DownloadViewHolder extends RecyclerView.ViewHolder {

@SuppressFBWarnings("URF_UNREAD_FIELD")
ImageView icon;
Expand All @@ -393,7 +393,7 @@ public DownloadViewHolder(View itemView) {
}
}

public class DownloadEmptyViewHolder extends RecyclerView.ViewHolder {
public static class DownloadEmptyViewHolder extends RecyclerView.ViewHolder {

@SuppressFBWarnings("URF_UNREAD_FIELD")
ImageView imag;
Expand All @@ -404,7 +404,7 @@ public DownloadEmptyViewHolder(View itemView) {
}
}

public class OnOpeningViewHolder extends RecyclerView.ViewHolder {
public static class OnOpeningViewHolder extends RecyclerView.ViewHolder {

public OnOpeningViewHolder(View itemView) {
super(itemView);
Expand Down

0 comments on commit 68fbcc7

Please sign in to comment.