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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • unspecified
    • None
    • None
    • None

      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.

       

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

              Created:
              Updated:
              Resolved: