#198 Use Java Collections framework
Closed: migrated 3 years ago by dmoluguw. Opened 11 years ago by edewata.

Vector and Hashtable are legacy code. They are not deprecated but in most cases they can be replaced with other subclasses of List and Map that are better for the job.

Vector and Hashtable are synchronized, but most of the time we don't need synchronization (or already synchronized somewhere else), so using ArrayList or HashMap could improve the performance. If we need to add/remove the elements in a list many times we can use a LinkedList with small performance penalty. If we need to maintain the order of elements in a map we can use LinkedHashMap.


Metadata Update from @edewata:
- Issue assigned to vakwetu
- Issue set to the milestone: UNTRIAGED

7 years ago

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/769

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Metadata Update from @dmoluguw:
- Issue close_status updated to: migrated
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata