Fix Calling getter method getDownloadDir() on self is slower than field access (download_dir)
This commit is contained in:
parent
509adefc31
commit
2ecf0324e3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user