[Soot-list] Fast Lookup of SootMethod/SootMethodRef
Marc-Andre Laverdiere-Papineau
marc-andre.laverdiere-papineau at polymtl.ca
Wed Feb 27 14:03:21 EST 2013
Hello,
I want to check against a whitelist of methods, and I stored
SootMethodRef instances in a big HashSet.
Weirdly enough, using set.contains(), I kept on getting false.
I looked into the implementation, and it seems like equals and hashcode
are not implemented.
Is this something that was left out voluntarily?
Should I use a set or bit set with getNumber()? Are those numbers
guaranteed to have no collisions?
Otherwise, what is the fast way to do such lookups?
Regards,
--
Marc-André Laverdière-Papineau
Doctorant - PhD Candidate
More information about the Soot-list
mailing list