String[] messageBits = messageText.split("Page [0-9]");
for (int i = 0; i < messageBits.length; i++)
{
if (messageBits.length > 1)
{
messageBits[i] = "Page " + (i + 1) + " " + messageBits[i]; // ← False positive squid:S1643 (Use a StringBuilder instead.)
}
}
for (int i = 0; i < messageBits.length; i++)
{
if (messageBits.length > 1)
{
messageBits[i] = new StringBuffer("Page ").append(i + 1).append(" ").append(messageBits[i]).toString();
}
}
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/ed478540-9194-4466-9bbc-5a23be4e7a26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.