Uploaded image for project: 'transportpce'
  1. transportpce
  2. TRNSPRTPCE-20

findTheLongestSubstring returns {start, end} but is used as {0, length}

    XMLWordPrintable

Details

    • Bug
    • Status: Verified
    • High
    • Resolution: Done
    • None
    • unspecified
    • None
    • None

    Description

      the method findTheLongestSubstring() returns int[] pos that contains the start and end index of the of the longest common substring between nodeId and tpId

      but in line 221 while adding the NodeIdPair to the treemap, the pos[] is used as folllowing :

                treeMap.put(id, new NodeIdPair(nodeID.substring(0, pos[0] - 1), tpID));

      we will solve it and commit the fix.

       

      Attachments

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

        Activity

          People

            doha.khaled Doha Khaled
            doha.khaled Doha Khaled
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: