mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-22 13:12:15 +00:00
add note
This commit is contained in:
1 parent
fc353ee0bd
commit
22dd5b8adc
1 file changed
+5
@@ -174,6 +174,11 @@ public abstract class SimpleDataStructure extends DataStructureImpl {
|
||||
return rv;
|
||||
}
|
||||
|
||||
/**
|
||||
* Warning - this returns true for two different classes with the same size
|
||||
* and same data, e.g. SessionKey and SessionTag, but you wouldn't
|
||||
* put them in the same Set, would you?
|
||||
*/
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if ((obj == null) || !(obj instanceof SimpleDataStructure)) return false;
|
||||
|
||||
Reference in new issue
Block a user