mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
clear warnnings
This commit is contained in:
@@ -488,7 +488,6 @@ public final class JdbcUtils {
|
||||
}
|
||||
|
||||
public static Driver createDriver(String driverClassName) throws SQLException {
|
||||
ClassNotFoundException exception = null;
|
||||
try {
|
||||
return (Driver) Class.forName(driverClassName).newInstance();
|
||||
} catch (IllegalAccessException e) {
|
||||
@@ -496,7 +495,7 @@ public final class JdbcUtils {
|
||||
} catch (InstantiationException e) {
|
||||
throw new SQLException(e.getMessage(), e);
|
||||
} catch (ClassNotFoundException e) {
|
||||
exception = e;
|
||||
// skip
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user