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:
sponge
2009-04-21 03:32:38 +00:00
parent 311ec4eb54
commit f2e9e2cc23
136 changed files with 429 additions and 188 deletions

View File

@ -87,12 +87,14 @@ public class TunnelCreateStatusMessage extends I2NPMessageImpl {
public int getType() { return MESSAGE_TYPE; }
@Override
public int hashCode() {
return DataHelper.hashCode(getReceiveTunnelId()) +
getStatus() +
(int)getNonce();
}
@Override
public boolean equals(Object object) {
if ( (object != null) && (object instanceof TunnelCreateStatusMessage) ) {
TunnelCreateStatusMessage msg = (TunnelCreateStatusMessage)object;
@ -104,6 +106,7 @@ public class TunnelCreateStatusMessage extends I2NPMessageImpl {
}
}
@Override
public String toString() {
StringBuffer buf = new StringBuffer();
buf.append("[TunnelCreateStatusMessage: ");