forked from I2P_Developers/i2p.i2p
2009-04-21 sponge
* Code janator work, basic corrections involving @Override, and
appling final where it is important. Also fixed some equals methods
and commented places that need fixing.
This commit is contained in:
@@ -350,6 +350,7 @@ public class DeliveryInstructions extends DataStructureImpl {
|
||||
+ getAdditionalInfoSize();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if ( (obj == null) || !(obj instanceof DeliveryInstructions))
|
||||
return false;
|
||||
@@ -364,6 +365,7 @@ public class DeliveryInstructions extends DataStructureImpl {
|
||||
DataHelper.eq(getTunnelId(), instr.getTunnelId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return (int)getDelaySeconds() +
|
||||
getDeliveryMode() +
|
||||
@@ -373,6 +375,7 @@ public class DeliveryInstructions extends DataStructureImpl {
|
||||
DataHelper.hashCode(getTunnelId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuffer buf = new StringBuffer(128);
|
||||
buf.append("[DeliveryInstructions: ");
|
||||
|
||||
Reference in New Issue
Block a user