-public class SaveWebpageImage extends AsyncTask<String, Void, String> {
- // Define the weak references.
- private WeakReference<Activity> activityWeakReference;
- private WeakReference<NestedScrollWebView> nestedScrollWebViewWeakReference;
+public class SaveWebpageImage extends AsyncTask<Void, Void, String> {
+ // Declare the weak references.
+ private final WeakReference<Activity> activityWeakReference;
+ private final WeakReference<NestedScrollWebView> nestedScrollWebViewWeakReference;