diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/preview/PreviewTablePane.java b/designer-base/src/main/java/com/fr/design/data/datapane/preview/PreviewTablePane.java index 5fea6eb958..5c97c72f0e 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/preview/PreviewTablePane.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/preview/PreviewTablePane.java @@ -602,11 +602,12 @@ public class PreviewTablePane extends BasicPane { /** * 校验下是否为JNDI连接且禁用该功能,若是显示禁用信息提示 + * * @param connection */ private void validateJndiDisabled(Connection connection) throws SecurityRestrictionException { - if(connection instanceof NameDatabaseConnection && ((NameDatabaseConnection) connection).getConnection() instanceof JNDIDatabaseConnection) { - if(SecurityConfig.getInstance().isDisableJNDI()) { + if (connection instanceof NameDatabaseConnection && ((NameDatabaseConnection) connection).getConnection() instanceof JNDIDatabaseConnection) { + if (SecurityConfig.getInstance().isDisableJNDI()) { throw new SecurityRestrictionException(Toolkit.i18nText("Fine-Design_Basic_Database_Connection_JNDI_Disabled")); } }