diff --git a/designer-base/src/main/java/com/fr/env/TestConnectionResult.java b/designer-base/src/main/java/com/fr/env/TestConnectionResult.java index 5d96612cb1..c44f18487d 100644 --- a/designer-base/src/main/java/com/fr/env/TestConnectionResult.java +++ b/designer-base/src/main/java/com/fr/env/TestConnectionResult.java @@ -10,11 +10,8 @@ import com.fr.stable.StringUtils; import com.fr.workspace.connect.WorkspaceConnectionInfo; import com.fr.workspace.engine.exception.WorkspaceCheckException; -import java.util.HashSet; -import java.util.Set; import javax.swing.Icon; import javax.swing.UIManager; -import org.json.Test; /** * 测试连接的结果。 @@ -223,20 +220,7 @@ public enum TestConnectionResult { } return result; } - } return AUTH_FAILED; } - - private final static Set VERIFY_SET = new HashSet<>(); - - static { - VERIFY_SET.add(LOGIN_LOCK); - VERIFY_SET.add(PASSWORD_NEED_UPDATE); - VERIFY_SET.add(PASSWORD_STRENGTH_LIMIT); - } - - public static boolean isVerifyResult(TestConnectionResult result) { - return VERIFY_SET.contains(result); - } }