Author: j16sdiz
Date: 2008-04-11 07:57:20 +0000 (Fri, 11 Apr 2008)
New Revision: 19166
Modified:
trunk/freenet/src/freenet/io/xfer/PartiallyReceivedBulk.java
Log:
findbugs: PartiallyReceivedBulk.recv is never written --> always null
Modified: trunk/freenet/src/freenet/io/xfer/PartiallyReceivedBulk.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/PartiallyReceivedBulk.java
2008-04-11 07:56:57 UTC (rev 19165)
+++ trunk/freenet/src/freenet/io/xfer/PartiallyReceivedBulk.java
2008-04-11 07:57:20 UTC (rev 19166)
@@ -30,8 +30,6 @@
final int blocks;
private BulkTransmitter[] transmitters;
final MessageCore usm;
- /** The one and only BulkReceiver */
- private BulkReceiver recv;
private int blocksReceivedCount;
// Abort status
boolean _aborted;
@@ -132,21 +130,17 @@
if(Logger.shouldLog(Logger.NORMAL, this))
Logger.normal(this, "Aborting "+this+": "+errCode+" :
"+why, new Exception("debug"));
BulkTransmitter[] notifyBTs;
- BulkReceiver notifyBR;
synchronized(this) {
_aborted = true;
_abortReason = errCode;
_abortDescription = why;
notifyBTs = transmitters;
- notifyBR = recv;
}
if(notifyBTs != null) {
for(int i=0;i<notifyBTs.length;i++) {
notifyBTs[i].onAborted();
}
}
- if(notifyBR != null)
- notifyBR.onAborted();
raf.close();
}