From 358d972dee8097028365832a103cd98d85d94abd Mon Sep 17 00:00:00 2001 From: hades Date: Tue, 27 Oct 2020 12:10:49 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-40646=20=E5=8E=BB=E6=8E=89=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fr/env/TestConnectionResult.java | 16 ---------------- 1 file changed, 16 deletions(-) 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); - } }