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

@ -156,6 +156,7 @@ public class GarlicClove extends DataStructureImpl {
_log.debug("Written cert: " + _certificate);
}
@Override
public byte[] toByteArray() {
byte rv[] = new byte[estimateSize()];
int offset = 0;
@ -186,6 +187,7 @@ public class GarlicClove extends DataStructureImpl {
+ _certificate.size(); // certificate
}
@Override
public boolean equals(Object obj) {
if ( (obj == null) || !(obj instanceof GarlicClove))
return false;
@ -197,6 +199,7 @@ public class GarlicClove extends DataStructureImpl {
DataHelper.eq(getInstructions(), clove.getInstructions());
}
@Override
public int hashCode() {
return DataHelper.hashCode(getCertificate()) +
(int)getCloveId() +
@ -205,6 +208,7 @@ public class GarlicClove extends DataStructureImpl {
DataHelper.hashCode(getInstructions());
}
@Override
public String toString() {
StringBuffer buf = new StringBuffer(128);
buf.append("[GarlicClove: ");