diff --git a/F-Droid/src/org/fdroid/fdroid/RepoPersister.java b/F-Droid/src/org/fdroid/fdroid/RepoPersister.java index e67fa35ca..c816e81a9 100644 --- a/F-Droid/src/org/fdroid/fdroid/RepoPersister.java +++ b/F-Droid/src/org/fdroid/fdroid/RepoPersister.java @@ -46,9 +46,9 @@ public class RepoPersister { @NonNull private final Context context; - private Map appsToUpdate = new HashMap<>(); - private List apksToUpdate = new ArrayList<>(); - private List repos = new ArrayList<>(); + private final Map appsToUpdate = new HashMap<>(); + private final List apksToUpdate = new ArrayList<>(); + private final List repos = new ArrayList<>(); public RepoPersister(@NonNull Context context) { this.context = context; diff --git a/F-Droid/src/org/fdroid/fdroid/net/Downloader.java b/F-Droid/src/org/fdroid/fdroid/net/Downloader.java index b7529e7e2..83c20bd1f 100644 --- a/F-Droid/src/org/fdroid/fdroid/net/Downloader.java +++ b/F-Droid/src/org/fdroid/fdroid/net/Downloader.java @@ -211,7 +211,7 @@ public abstract class Downloader { */ private class WrappedInputStream extends InputStream { - private InputStream toWrap; + private final InputStream toWrap; public WrappedInputStream(InputStream toWrap) { super();