in Downloader, instance vars that are set in constructor should be final
This commit is contained in:
		
							parent
							
								
									5582e906c8
								
							
						
					
					
						commit
						60f02c0181
					
				@ -26,12 +26,12 @@ public abstract class Downloader {
 | 
				
			|||||||
    public static final String EXTRA_BYTES_READ = "extraBytesRead";
 | 
					    public static final String EXTRA_BYTES_READ = "extraBytesRead";
 | 
				
			||||||
    public static final String EXTRA_TOTAL_BYTES = "extraTotalBytes";
 | 
					    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;
 | 
					    private final File outputFile;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    protected URL sourceUrl;
 | 
					    protected final URL sourceUrl;
 | 
				
			||||||
    protected String cacheTag = null;
 | 
					    protected String cacheTag = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public abstract InputStream getInputStream() throws IOException;
 | 
					    public abstract InputStream getInputStream() throws IOException;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user