[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:
Blocks
blocks YANGTOOLS-1331 Remove util.Immutables Resolved

 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.


Generated at Wed Feb 07 20:55:50 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.