Fix Calling getter method getDownloadDir() on self is slower than field access (download_dir)

This commit is contained in:
Alejandro Alcalde 2014-08-09 00:30:39 +02:00
parent 509adefc31
commit 2ecf0324e3

View File

@ -139,7 +139,7 @@ public class FileDownloader {
if (basename.length() < 3)
basename = "tmp";
File output = File.createTempFile(basename, extension, this.getDownloadDir());
File output = File.createTempFile(basename, extension, download_dir);
//System.out.println("output: " + output.getPath());
/* Convert the Bytes read to a String. */
FileOutputStream fos = new FileOutputStream(output);