Skip to content

Commit 650dee1

Browse files
committed
api: remove unnecessary arg to substring in Uri
1 parent 53053ba commit 650dee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main/java/io/grpc/Uri.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public static Uri create(String s) {
257257
int hostStart = userInfoEnd >= 0 ? userInfoEnd + 1 : 0;
258258
int portStartColon = findPortStartColon(authority, hostStart);
259259
if (portStartColon < 0) {
260-
builder.setRawHost(authority.substring(hostStart, authority.length()));
260+
builder.setRawHost(authority.substring(hostStart));
261261
} else {
262262
builder.setRawHost(authority.substring(hostStart, portStartColon));
263263
builder.setRawPort(authority.substring(portStartColon + 1));

0 commit comments

Comments
 (0)