2009-04-17 sponge

* setIP wants to be a static method in the class, but it produces
      warnings about it being static from other code.
This commit is contained in:
sponge
2009-04-17 13:28:05 +00:00
parent d0376f82a5
commit c3f9e20247
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2009-04-17 sponge
* setIP wants to be a static method in the class, but it produces
warnings about it being static from other code.
2009-04-17 sponge
* Catch NPE in NTCP.
This possibly augments fix 2009-04-11 welterde below.

View File

@ -17,7 +17,7 @@ import net.i2p.CoreVersion;
public class RouterVersion {
public final static String ID = "$Revision: 1.548 $ $Date: 2008-06-07 23:00:00 $";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 19;
public final static long BUILD = 20;
public static void main(String args[]) {
System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
System.out.println("Router ID: " + RouterVersion.ID);

View File

@ -505,7 +505,7 @@ public abstract class TransportImpl implements Transport {
_log.warn(this.getStyle() + " setting wasUnreachable to " + yes + " for " + peer);
}
public /* static */ void setIP(Hash peer, byte[] ip) {
public static void setIP(Hash peer, byte[] ip) {
_IPMap.put(peer, ip);
}