Fixups after props from:

i2p.i2p.zzz.pcap
	i2p.i2p.zzz.test
	i2p.i2p.zzz.test2
	i2p.i2p.zzz.update
Javadoc fixes
Checklist tweak
-1
This commit is contained in:
zzz
2012-10-28 13:08:02 +00:00
parent 5e48331eae
commit 4baf3b6913
10 changed files with 48 additions and 27 deletions

View File

@@ -59,7 +59,6 @@ public class BitField
// cleared or clear them explicitly ourselves.
System.arraycopy(bitfield, 0, this.bitfield, 0, arraysize);
this.count = 0;
for (int i = 0; i < size; i++)
if (get(i))
this.count++;

View File

@@ -958,16 +958,11 @@ class PeerCoordinator implements PeerListener
*/
public boolean gotPiece(Peer peer, PartialPiece pp)
{
if (metainfo == null || storage == null || storage.isChecking()) {
if (metainfo == null || storage == null || storage.isChecking() || halted) {
pp.release();
return true;
}
int piece = pp.getPiece();
if (halted) {
_log.info("Got while-halted piece " + piece + "/" + metainfo.getPieces() +" from " + peer + " for " + metainfo.getName());
pp.release();
return true; // We don't actually care anymore.
}
synchronized(wantedPieces)
{

View File

@@ -798,15 +798,6 @@ public class RouterConsoleRunner implements RouterApp {
}
}
/** @since 0.8.8 */
private static class ServerShutdown implements Runnable {
public void run() {
try {
_server.stop();
} catch (Exception ie) {}
}
}
private Properties webAppProperties() {
return webAppProperties(_context.getConfigDir().getAbsolutePath());
}

View File

@@ -40,7 +40,7 @@ import net.i2p.data.Hash;
* Yes we could dump it natively and write a wireshark dissector. That sounds hard.
* And we wouldn't get the TCP stream analysis built into the tools.
*
* @author zzz
* @since 0.9.4
*/
public class PcapWriter {