Skip to content

Commit

Permalink
Merge 6114019 into e69d5e6
Browse files Browse the repository at this point in the history
  • Loading branch information
quaff committed Jun 17, 2020
2 parents e69d5e6 + 6114019 commit 94a71e3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/java/io/opentracing/contrib/jdbc/parser/URLParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class URLParser {
/**
* parse the url to the ConnectionInfo
*/
public static ConnectionInfo parser(String url) {
public static ConnectionInfo parse(String url) {
if (null == url) {
return ConnectionInfo.UNKNOWN_CONNECTION_INFO;
}
Expand All @@ -58,6 +58,14 @@ public static ConnectionInfo parser(String url) {
return ConnectionInfo.UNKNOWN_CONNECTION_INFO;
}

/**
* @deprecated use {@link #parse(String)} instead
*/
@Deprecated
public static ConnectionInfo parser(String url) {
return parse(url);
}

private static ConnectionURLParser findURLParser(String lowerCaseUrl) {
for (Map.Entry<String, ConnectionURLParser> entry : parserRegister.entrySet()) {
if (lowerCaseUrl.startsWith(entry.getKey())) {
Expand Down

0 comments on commit 94a71e3

Please sign in to comment.