Apache9 commented on code in PR #4644:
URL: https://github.com/apache/hbase/pull/4644#discussion_r929504999
##########
hbase-client/src/main/java/org/apache/hadoop/hbase/security/SaslUtil.java:
##########
@@ -62,7 +65,8 @@ public boolean matches(String stringQop) {
/** Splitting fully qualified Kerberos name into parts */
public static String[] splitKerberosName(String fullName) {
- return fullName.split("[/@]");
+ List<String> result = Splitter.onPattern("[/@]").splitToList(fullName);
Review Comment:
return
Splitter.onPattern("[/@]").splitToStream(fullName).toArray(String[]::new);
--
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]