Skip to content

Commit e6e5201

Browse files
committed
Clean up comments
1 parent 99455ee commit e6e5201

File tree

1 file changed

+1
-5
lines changed
  • apm-sniffer/apm-sdk-plugin/jdbc-commons/src/main/java/org/apache/skywalking/apm/plugin/jdbc/connectionurl/parser

1 file changed

+1
-5
lines changed

apm-sniffer/apm-sdk-plugin/jdbc-commons/src/main/java/org/apache/skywalking/apm/plugin/jdbc/connectionurl/parser/DMURLParser.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public DMURLParser(String url) {
3636
protected URLLocation fetchDatabaseHostsIndexRange() {
3737
int hostLabelStartIndex = url.indexOf("//");
3838
if (hostLabelStartIndex == -1) {
39-
return new URLLocation(0, 0); // 格式错误
39+
return new URLLocation(0, 0);
4040
}
4141
int hostLabelEndIndex = url.indexOf("?", hostLabelStartIndex + 2);
4242
if (hostLabelEndIndex == -1) {
@@ -71,7 +71,6 @@ public ConnectionInfo parse() {
7171
}
7272
}
7373

74-
// 如果 host 或 port 没有从路径中获取到,则尝试从参数中获取
7574
if (host.isEmpty()) {
7675
host = fetchFromUrlParams(URL_PARAMS_HOST_KEY);
7776
}
@@ -94,9 +93,6 @@ public ConnectionInfo parse() {
9493
);
9594
}
9695

97-
/**
98-
* 从 URL 参数中提取指定 key 的值
99-
*/
10096
private String fetchFromUrlParams(String key) {
10197
int paramIndex = url.indexOf("?");
10298
if (paramIndex == -1) {

0 commit comments

Comments
 (0)