File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 25
25
*/
26
26
package de .kuehweg .sqltool .database ;
27
27
28
+ import java .lang .reflect .InvocationTargetException ;
28
29
import java .sql .Connection ;
29
30
import java .sql .DriverManager ;
30
31
import java .sql .SQLException ;
@@ -70,7 +71,7 @@ private void connect(final Connection connection) {
70
71
*/
71
72
public void connect (final ConnectionSetting connectionSetting ) throws DatabaseConnectionException {
72
73
try {
73
- Class .forName (connectionSetting .getType ().getDriverClass ()).newInstance ();
74
+ Class .forName (connectionSetting .getType ().getDriverClass ()).getDeclaredConstructor (). newInstance ();
74
75
final Properties properties = new Properties ();
75
76
properties .setProperty ("user" , connectionSetting .getUser () != null ? connectionSetting .getUser () : "" );
76
77
properties .setProperty ("password" ,
@@ -100,7 +101,7 @@ public void connect(final ConnectionSetting connectionSetting) throws DatabaseCo
100
101
connect (DriverManager .getConnection (connectionSetting .getUrl (), properties ));
101
102
connectedProperty .set (true );
102
103
} catch (NullPointerException | ClassNotFoundException | InstantiationException | IllegalAccessException
103
- | SQLException ex ) {
104
+ | SQLException | IllegalArgumentException | InvocationTargetException | NoSuchMethodException | SecurityException ex ) {
104
105
connectedProperty .set (false );
105
106
throw new DatabaseConnectionException (ex );
106
107
}
Original file line number Diff line number Diff line change 25
25
*/
26
26
package de .kuehweg .sqltool .dialog .util ;
27
27
28
- import java .util .logging .Level ;
29
- import java .util .logging .Logger ;
30
-
31
28
/**
32
29
* Bugfix für die in der Kombination von HSQLDB mit WebViews auftretenden
33
30
* Probleme, dass wegen des von HSQLDB umgestellten Log-Levels die WebViews in
Original file line number Diff line number Diff line change 26
26
27
27
package de .kuehweg .sqltool .itrysql ;
28
28
29
- import java .io .File ;
30
29
import java .net .MalformedURLException ;
31
- import java .net .ProtocolFamily ;
32
30
import java .net .URL ;
33
31
34
32
/**
Original file line number Diff line number Diff line change 1
1
module itrysql {
2
+
3
+ requires transitive javafx .base ;
4
+ requires transitive javafx .graphics ;
5
+
2
6
requires javafx .controls ;
3
7
requires javafx .fxml ;
4
8
requires javafx .web ;
You can’t perform that action at this time.
0 commit comments