Make classes static where possible

Found via error-prone.
This commit is contained in:
Andrew Gaul 2019-08-05 17:30:58 -07:00
parent 0680dfb047
commit 94bee6fb74
3 changed files with 4 additions and 4 deletions

View File

@ -79,7 +79,7 @@ public class CoverLoader {
builder.into(new CoverTarget(txtvPlaceholder, imgvCover)); builder.into(new CoverTarget(txtvPlaceholder, imgvCover));
} }
class CoverTarget extends CustomViewTarget<ImageView, Drawable> { static class CoverTarget extends CustomViewTarget<ImageView, Drawable> {
private final WeakReference<TextView> placeholder; private final WeakReference<TextView> placeholder;
private final WeakReference<ImageView> cover; private final WeakReference<ImageView> cover;

View File

@ -100,7 +100,7 @@ public class DataFolderAdapter extends RecyclerView.Adapter<DataFolderAdapter.Vi
dialog.dismiss(); dialog.dismiss();
} }
class ViewHolder extends RecyclerView.ViewHolder { static class ViewHolder extends RecyclerView.ViewHolder {
private View root; private View root;
private TextView path; private TextView path;
private TextView size; private TextView size;
@ -117,7 +117,7 @@ public class DataFolderAdapter extends RecyclerView.Adapter<DataFolderAdapter.Vi
} }
} }
class StoragePath { static class StoragePath {
private final String path; private final String path;
StoragePath(String path) { StoragePath(String path) {

View File

@ -60,7 +60,7 @@ public class EpisodesApplyActionFragment extends Fragment {
* *
* Includes: the menu / action item and the actual logic * Includes: the menu / action item and the actual logic
*/ */
private class ActionBinding { private static class ActionBinding {
int flag; int flag;
@IdRes @IdRes
final int actionItemId; final int actionItemId;