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

Codify AbstractModelStatement's hashCode/equals/toString

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: