Browse Source

KERNEL-6188 去除无用的try-catch

feature/big-screen
Yvan 4 years ago
parent
commit
f549b55ca1
  1. 11
      designer-base/src/main/java/com/fr/design/data/datapane/connect/DatabaseConnectionPane.java

11
designer-base/src/main/java/com/fr/design/data/datapane/connect/DatabaseConnectionPane.java

@ -134,14 +134,9 @@ public abstract class DatabaseConnectionPane<E extends com.fr.data.impl.Connecti
final SwingWorker<Boolean, Void> connectionThread = new SwingWorker<>() {
@Override
protected Boolean doInBackground() throws Exception {
try {
Connection database = DatabaseConnectionPane.this.updateBean();
// 返回连接结果
return DataOperator.getInstance().testConnection(database);
} catch (Exception exp) {
FineLoggerFactory.getLogger().error(exp.getMessage(), exp);
}
return null;
Connection database = DatabaseConnectionPane.this.updateBean();
// 返回连接结果
return DataOperator.getInstance().testConnection(database);
}
@Override

Loading…
Cancel
Save