Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-11138

Enforce VertexRef to be immutable

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 25.0.0
    • Component/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      Enforce that the new VertexRef is immutable.
      At the moment a Vertex is an actual VertexRef and therefore by default mutable.
      There is a method call getVertexRef() which just copies the (namespace,id) tuple.

      Solution could be to have Vertex NOT implement VertexRef and always getVertexRef(). This allows for a immutable key. However keep in mind, that the (namespace,id) tuple of Vertex can still change.

        Attachments

          Activity

            People

            • Assignee:
              patrick.schweizer Patrick Schweizer
              Reporter:
              mvr Markus von RĂ¼den
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: