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

Codify AbstractModelStatement's hashCode/equals/toString

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 8.0.0, 7.0.10
    • model-spi
    • None

    Description

      We have a lot of statement implementations, some of which have a toString() method, but most are lacking it. Furthermore most of our statements use identity hashCode()/equals(), but some actually compare their state.

      Codify these three methods by making them final in AbstractModelStatement, providing a reasonable toString() for all statement implementations as well as nailing down the fact we always use identity for comparisons.

      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: