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

Clean up {Schema,Data}TreeAwareStatement lookups

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 7.0.0
    • model-api
    • None

    Description

      Current set of lookup methods uses an unsafe type-variance:

      <E extends SchemaTreeEffectiveStatement<?>> Optional<E> findSchemaTreeNode(List<QName> qnames);

      This needs to be split up into multiple methods, so we support proper Class-based filters:

      <E> Optional<E> findSchemaTreeNode(Class<E> type, List<QName> qnames);

      while also providing a simplified

      Optional<SchemaTreeEffectiveStatement<?>> findSchemaTreeNode(List<QName> qnames);
      

       

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: