Author: toad
Date: 2008-09-05 14:03:58 +0000 (Fri, 05 Sep 2008)
New Revision: 22451
Modified:
branches/db4o/freenet/src/freenet/client/async/SingleFileFetcher.java
Log:
In fact, that doesn't make sense.
Modified: branches/db4o/freenet/src/freenet/client/async/SingleFileFetcher.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SingleFileFetcher.java
2008-09-05 13:42:11 UTC (rev 22450)
+++ branches/db4o/freenet/src/freenet/client/async/SingleFileFetcher.java
2008-09-05 14:03:58 UTC (rev 22451)
@@ -199,16 +199,11 @@
}
if(!decompressors.isEmpty()) {
Bucket data = result.asBucket();
- boolean tooManyDecompressors = decompressors.size() > 1;
while(!decompressors.isEmpty()) {
Compressor c = (Compressor)
decompressors.remove(decompressors.size()-1);
try {
long maxLen =
Math.max(ctx.maxTempLength, ctx.maxOutputLength);
- Bucket out;
- if(tooManyDecompressors)
- out = null;
- else
- out = decompressors.isEmpty() ?
returnBucket : null;
+ Bucket out = decompressors.isEmpty() ?
returnBucket : null;
data = c.decompress(data,
context.getBucketFactory(parent.persistent()), maxLen, maxLen * 4, out);
} catch (IOException e) {
onFailure(new
FetchException(FetchException.BUCKET_ERROR, e), false, container, context);