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

Encapsulate ModificationApplyOperation.getChild() overrides

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Won't Do
    • None
    • None
    • data-impl
    • None

    Description

      We currently have seven distinct implementations of this method, which really come down to following behaviors:

      1. delegates
      2. throws UnsupportedOperationException
      3. guards path argument for a type before returning a constant
      4. looks up in a pre-computed map
      5. perfoms a cached lookup

      Options 3-5 are only accessible through SchemaAwareApplyOperation, hence we should be to make the method bimorphic and delegate internally to a utility class.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: