dominikschlosser / super-csv-declarative

Unofficial declarative extension to super-csv
Apache License 2.0
2 stars 1 forks source link

@UniqueHashCode not reset when reading a bean type twice #21

Closed thomas-mc-work closed 7 years ago

thomas-mc-work commented 7 years ago

I have declared a CSV bean that has a field annotated by @UniqueHashCode. Reading the file once works fine. When read the file a second time by a different CsvDeclarativeBeanReader instance then it inherits the same value list from the first attempt. The cause seems to be the field cache feature here: BeanCells.java#L52. I would expect it to be reset when using the reader multiple times.