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:
@ -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: ");
|
||||
|
Reference in New Issue
Block a user