forked from I2P_Developers/i2p.i2p
2009-08-11 sponge
* Code Janitor time! Many fixes and documenting fixes that should be
done in the future. for the most part, this is a general code cleanup.
* On smaller/embedded systems, the "final" keyword cleanups will have
more of an impact than on larger systems.
* Document missing hashCode() methods.
* Unhide more variables to make code easier to read.
This commit is contained in:
@@ -212,6 +212,8 @@ public class HashCash implements Comparable<HashCash> {
|
||||
/**
|
||||
* Two objects are considered equal if they are both of type HashCash and have an identical string representation
|
||||
*/
|
||||
/* FIXME missing hashCode() method FIXME */
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if(obj instanceof HashCash)
|
||||
return toString().equals(obj.toString());
|
||||
@@ -222,6 +224,7 @@ public class HashCash implements Comparable<HashCash> {
|
||||
/**
|
||||
* Returns the canonical string representation of the HashCash
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
return myToken;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user