Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2565

GraphMLWriter does not check vertexLabelKey conflict

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4.11
    • 3.4.12, 3.5.1, 3.6.0
    • io
    • None

    Description

      Reading the GraphMLWriter code I came across these weird lines of code:

      if (identifiedEdgeKeyTypes.containsKey(this.edgeLabelKey))
         throw new IllegalStateException(String.format("The edgeLabelKey value of[%s] conflicts with the name of an existing property key to be included in the GraphML", this.edgeLabelKey));
      if (identifiedEdgeKeyTypes.containsKey(this.edgeLabelKey))
         throw new IllegalStateException(String.format("The vertexLabelKey value of[%s] conflicts with the name of an existing property key to be included in the GraphML", this.vertexLabelKey));
      

      The check is identical, but the exception is different?
      This smells like a copy-paste errors and the second check should be more like:

      if (identifiedVertexKeyTypes.containsKey(this.vertexLabelKey))
      

      Attachments

        Activity

          People

            spmallette Stephen Mallette
            luzifer42 Luz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: