japplis commented on code in PR #543:
URL: https://github.com/apache/commons-vfs/pull/543#discussion_r1618775276
##########
commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/UriParser.java:
##########
@@ -89,7 +90,7 @@ private boolean readNonSeparator() {
cursor++;
return true;
}
- final String sub = path.substring(cursor + 1, cursor + 3);
+ final String sub = path.substring(cursor, cursor + 3);
Review Comment:
I've copied the `final String sub = path.substring(cursor, cursor + 3);`
from the existing `readDot();` and `readSeparator();`
Not that on of my next commit, I'll remove this substring as it is a
performance bottleneck. My local branch shows a 3x performance improvement.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]