apurtell commented on code in PR #4645:
URL: https://github.com/apache/hbase/pull/4645#discussion_r929401127
##########
hbase-common/src/main/java/org/apache/hadoop/hbase/ServerName.java:
##########
@@ -142,7 +144,9 @@ public static ServerName valueOf(final String hostname,
final int port, final lo
*/
public static ServerName valueOf(final String serverName) {
final String hostname = serverName.substring(0,
serverName.indexOf(SERVERNAME_SEPARATOR));
- final int port =
Integer.parseInt(serverName.split(SERVERNAME_SEPARATOR)[1]);
+ Iterator<String> i =
Splitter.onPattern(SERVERNAME_SEPARATOR).split(serverName).iterator();
Review Comment:
No objections,will use.
--
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]