Merge pull request #12093 from anuragkumawat/JAVA-9557

JAVA-9557 GitHub Issue: Bug in StringPerformance.java
This commit is contained in:
kwoyke 2022-04-22 10:36:24 +02:00 committed by GitHub
commit 609f43167e
1 changed files with 2 additions and 0 deletions

View File

@ -125,6 +125,8 @@ public class StringPerformance {
stringSplit.add(longString.substring(pos, end)); stringSplit.add(longString.substring(pos, end));
pos = end + 1; pos = end + 1;
} }
//Add last token of string
stringSplit.add(longString.substring(pos));
return stringSplit; return stringSplit;
} }