[YANGTOOLS-1330] Deprecate util.Immutables Created: 27/Sep/21 Updated: 10/Apr/22 Resolved: 27/Sep/21 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.0.9 |
| Type: | Task | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
Our util.Immutables class is an attempt to centralize knowledge about when an object can be considered immutable. Unfortunately this utility has limited use, as JDK11 has a large swathes of immutable collections (List.of() et al.) which cannot be readily identified. Furthermore JDK16's strong encapsulation by default renders reflection-based tricks useless as well. The class itself is not used anywhere, so let's just give up and ditch it. |