bd2019us commented on a change in pull request #1207: Performance Save Patch -
Replace replaceAll() with replace()
URL: https://github.com/apache/netbeans/pull/1207#discussion_r282657809
##########
File path:
java/maven.indexer/src/org/netbeans/modules/maven/indexer/NexusRepositoryIndexerImpl.java
##########
@@ -1558,7 +1558,7 @@ public void run(ResultImpl<NBVersionInfo> result) {
}
}
} else if (ArtifactInfo.ARTIFACT_ID.equals(fieldName))
{
- String aid = one.replaceAll("-",
"?").replaceAll("\\.", "?");
+ String aid = one.replace("-",
"?").replaceAll("\\.", "?");
Review comment:
The "\." replaceAll() is untouched. Only the "-" -> "?" replaceAll() was
changed. Does the "-" -> "?" conversion seem incorrect?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists