frizbog / gedcom4j

Java library for reading/writing genealogy files in GEDCOM format
http://gedcom4j.org
55 stars 37 forks source link

Validators should detect/autorepair duplicate items in Lists #111

Closed frizbog closed 8 years ago

frizbog commented 8 years ago

There are a number of lists in the object model that arguably should not contain duplicated data. I use the phrase "arguably should not" because while the spec does not say these duplicates are forbidden or even wrong, it would make no sense.

Examples:

This is a compromise (in response to Issue #84) to avoid adding the memory overhead of using HashSets or LinkedHashSets instead of ArrayLists in the underlying data model (HashSet uses 28 bytes more per item than an ArrayList, and a LinkedHashSet uses 36 more bytes per item).

frizbog commented 8 years ago

I've started this work in v3-development branch

frizbog commented 8 years ago

Released in v3.0.0