rishabhdaim commented on code in PR #2380:
URL: https://github.com/apache/jackrabbit-oak/pull/2380#discussion_r2197998749
##########
oak-blob-plugins/src/main/java/org/apache/jackrabbit/oak/plugins/blob/datastore/SharedDataStoreUtils.java:
##########
@@ -117,8 +117,11 @@ public String getType() {
}
public String getIdFromName(String name) {
- return Splitter.on("_").limit(2).splitToList(
- Splitter.on(DELIM).limit(2).splitToList(name).get(1)).get(0);
+ return Arrays.stream(name.split(DELIM, 2))
+ .skip(1)
+ .findFirst()
Review Comment:
`name.split(DELIM, 2)` would only get 2 elements.
--
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]