Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1330

Deprecate util.Immutables

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Medium Medium
    • 7.0.9
    • None
    • None

      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.

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: