Author: nextgens
Date: 2008-08-25 22:45:37 +0000 (Mon, 25 Aug 2008)
New Revision: 22163
Modified:
trunk/freenet/src/freenet/support/io/TempBucketFactory.java
Log:
TempBucket: fix a typo
Modified: trunk/freenet/src/freenet/support/io/TempBucketFactory.java
===================================================================
--- trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-08-25
22:45:14 UTC (rev 22162)
+++ trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-08-25
22:45:37 UTC (rev 22163)
@@ -178,11 +178,11 @@
@Override
public final void write(byte b[], int off, int len)
throws IOException {
synchronized(sync) {
- long futurSize = currentSize + len;
- _maybeMigrateRamBucket(futurSize);
+ long futureSize = currentSize + len;
+ _maybeMigrateRamBucket(futureSize);
_maybeResetOutputStream();
currentOS.write(b, off, len);
- currentSize = futurSize;
+ currentSize = futureSize;
if(isRAMBucket()) // We need to
re-check because it might have changed!
_hasTaken(len);
}