Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use Set instead of List to eliminate duplicates
One use-case is just selecting all requests in Proxy and invoking this extension from the context menu. However, if several rows had the same response content, they'd get checked more than once -- even though it doesn't help the end result in any way. Using a Set removes duplicates since ObjectId implements a sane .equals() method. A HashSet performs this rather well, since ObjectId uses the second 32-bit word from the ID it represents, resulting in a rather uniform distribution.
- Loading branch information