[JAVA-3456] ClassModel needs to be immutable Created: 08/Oct/19 Updated: 28/Oct/23 Resolved: 22/Oct/19 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | POJO |
| Affects Version/s: | None |
| Fix Version/s: | 3.12.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | John Stewart (Inactive) | Assignee: | John Stewart (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Description |
|
In JAVA-3364 we find that the collection fields in `ClassModel` can be modified after construction. The getters for these collection fields do not provide defensive copies of the collections, which is required for `ClassModel` to be immutable. |