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
server: versions now negotiated again
[fanfix.git]
/
src
/
be
/
nikiroo
/
utils
/
Cache.java
diff --git
a/src/be/nikiroo/utils/Cache.java
b/src/be/nikiroo/utils/Cache.java
index cf8a780ef9ae49f99b5536a5d549e5522a01837b..ff2859eb44403062a5186abd78aa0233316a4926 100644
(file)
--- a/
src/be/nikiroo/utils/Cache.java
+++ b/
src/be/nikiroo/utils/Cache.java
@@
-1,7
+1,6
@@
package be.nikiroo.utils;
import java.io.File;
package be.nikiroo.utils;
import java.io.File;
-import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
@@
-265,7
+264,7
@@
public class Cache {
if (cached.exists() && cached.isFile()
&& (allowTooOld || !isOld(cached, stable))) {
try {
if (cached.exists() && cached.isFile()
&& (allowTooOld || !isOld(cached, stable))) {
try {
- return new MarkableFileInputStream(
new FileInputStream(cached)
);
+ return new MarkableFileInputStream(
cached
);
} catch (FileNotFoundException e) {
return null;
}
} catch (FileNotFoundException e) {
return null;
}