forked from I2P_Developers/i2p.i2p
- Speed up some hashcode() and equals()
- Cleanup and javadoc
This commit is contained in:
@@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 3;
|
||||
public final static long BUILD = 4;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
|
@@ -56,7 +56,8 @@ public class CreateRouterInfoJob extends JobImpl {
|
||||
stats.setProperty(RouterInfo.PROP_NETWORK_ID, Router.NETWORK_ID+"");
|
||||
getContext().router().addCapabilities(info);
|
||||
info.setOptions(stats);
|
||||
info.setPeers(new HashSet());
|
||||
// not necessary, in constructor
|
||||
//info.setPeers(new HashSet());
|
||||
info.setPublished(getCurrentPublishDate(getContext()));
|
||||
RouterIdentity ident = new RouterIdentity();
|
||||
Certificate cert = getContext().router().createCertificate();
|
||||
|
@@ -92,8 +92,9 @@ public class RouterGenerator {
|
||||
RouterInfo info = new RouterInfo();
|
||||
try {
|
||||
info.setAddresses(createAddresses(num));
|
||||
info.setOptions(new Properties());
|
||||
info.setPeers(new HashSet());
|
||||
// not necessary, in constructor
|
||||
//info.setOptions(new Properties());
|
||||
//info.setPeers(new HashSet());
|
||||
info.setPublished(Clock.getInstance().now());
|
||||
RouterIdentity ident = new RouterIdentity();
|
||||
BigInteger bv = new BigInteger(""+num);
|
||||
|
Reference in New Issue
Block a user