pascal-lab/Tai-e

why use TreeSet() to store TaintFlow instance?

chennbnbnb opened this issue · 2 comments

Hi, I notice this code use TreeSet as container of TaintFlow.
TreeSet require TaintFlow must implement interface Comparable.

I wonder if it possible to replace TreeSet with HashSet, because element of HashSet doesn't have to be comparable.

For a sorted result of TaintFlows that helps dump and compare result.

thx