Browse Source

REPORT-40646 去掉无用的代码

feature/big-screen
hades 4 years ago
parent
commit
358d972dee
  1. 16
      designer-base/src/main/java/com/fr/env/TestConnectionResult.java

16
designer-base/src/main/java/com/fr/env/TestConnectionResult.java vendored

@ -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<TestConnectionResult> 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);
}
}

Loading…
Cancel
Save