git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jDoc
[fanfix.git]
/
src
/
be
/
nikiroo
/
utils
/
Downloader.java
diff --git
a/src/be/nikiroo/utils/Downloader.java
b/src/be/nikiroo/utils/Downloader.java
index 68e4dd73e285a941e3193ac6155d846fea2e8316..2a462a81efe752a7b596c631e1dae68e2b3de00a 100644
(file)
--- a/
src/be/nikiroo/utils/Downloader.java
+++ b/
src/be/nikiroo/utils/Downloader.java
@@
-1,6
+1,5
@@
package be.nikiroo.utils;
package be.nikiroo.utils;
-import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
@@
-346,8
+345,8
@@
public class Downloader {
}
if (cache != null) {
}
if (cache != null) {
- String size = conn.getContentLength
Long
() < 0 ? "unknown size"
- : StringUtils.formatNumber(conn.getContentLength
Long
())
+ String size = conn.getContentLength() < 0 ? "unknown size"
+ : StringUtils.formatNumber(conn.getContentLength())
+ "bytes";
tracer.trace("Save to cache (" + size + "): " + originalUrl);
try {
+ "bytes";
tracer.trace("Save to cache (" + size + "): " + originalUrl);
try {