in Downloader, instance vars that are set in constructor should be final

This commit is contained in:
Hans-Christoph Steiner 2015-07-16 23:02:11 -07:00
parent 5582e906c8
commit 60f02c0181

View File

@ -26,12 +26,12 @@ public abstract class Downloader {
public static final String EXTRA_BYTES_READ = "extraBytesRead";
public static final String EXTRA_TOTAL_BYTES = "extraTotalBytes";
private OutputStream outputStream;
private final OutputStream outputStream;
private LocalBroadcastManager localBroadcastManager;
private final LocalBroadcastManager localBroadcastManager;
private final File outputFile;
protected URL sourceUrl;
protected final URL sourceUrl;
protected String cacheTag = null;
public abstract InputStream getInputStream() throws IOException;