Affects Version/s: None
Fix Version/s: 1.0
CSVFormat describes itself as immutable, but it is not @Immutable - the class fields are all mutable.
The methods that change the fields do so by creating a clone, and returning the changed clone.
So in a sense the class is immutable.
However, the normal expectation is that @Immutable classes are @ThreadSafe.
CSVFormat is not thread-safe, because the fields are not volatile, and the fields are not written & read using a common lock.
The comment needs to be clarified or removed.
|Attachment||COLLECTIONS-398-2.patch [ 12517491 ]|
|Comment||[ Another simplification; no need to check for null element. ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Fix Version/s||CSV 1.0 [ 12313514 ]|
|Resolution||Fixed [ 1 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|