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

@ -53,10 +53,12 @@ public class DateMessage extends I2NPMessageImpl {
public int getType() { return MESSAGE_TYPE; }
@Override
public int hashCode() {
return (int)getNow();
}
@Override
public boolean equals(Object object) {
if ( (object != null) && (object instanceof DateMessage) ) {
DateMessage msg = (DateMessage)object;
@ -66,6 +68,7 @@ public class DateMessage extends I2NPMessageImpl {
}
}
@Override
public String toString() {
StringBuffer buf = new StringBuffer();
buf.append("[DateMessage: ");