[TRNSPRTPCE-20] findTheLongestSubstring returns {start, end} but is used as {0, length} Created: 18/Jul/18  Updated: 03/Sep/21  Resolved: 26/Jul/18

Status: Verified
Project: transportpce
Component/s: None
Affects Version/s: None
Fix Version/s: unspecified

Type: Bug Priority: High
Reporter: Doha Khaled Assignee: Doha Khaled
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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.

 



 Comments   
Comment by Doha Khaled [ 19/Jul/18 ]

fix added in https://git.opendaylight.org/gerrit/#/c/74237/

Generated at Wed Feb 07 20:42:04 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.