Call newInstance on Constructor of driverClass (#1290)

Class.newInstance is deprecated as of Java 9. Usage should be replaced by calling Class.get(Declared)Constructor.newInstance
pull/1291/head
Arlo Louis O'Keeffe 6 years ago committed by Brett Wooldridge
parent 503a1d6c59
commit 50c3fd1b78

@ -486,7 +486,7 @@ public class HikariConfig implements HikariConfigMXBean
}
try {
driverClass.newInstance();
driverClass.getConstructor().newInstance();
this.driverClassName = driverClassName;
}
catch (Exception e) {

Loading…
Cancel
Save