Fix the bug of ConnectionControlManager (#12399)

This commit is contained in:
Sunrisea 2024-07-24 16:05:34 +08:00 committed by GitHub
parent 6c6a22b4cc
commit 6122a9afc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@ import java.util.stream.Collectors;
/**
* connection control manager.
*
* @author shiyiyue
* @author shiyiyu
*/
@SuppressWarnings("PMD.AbstractClassShouldStartWithAbstractNamingRule")
public abstract class ConnectionControlManager {
@ -64,7 +64,7 @@ public abstract class ConnectionControlManager {
/**
* get manager name.
*
* @return
* @return name
*/
public abstract String getName();
@ -104,7 +104,7 @@ public abstract class ConnectionControlManager {
} else {
Loggers.CONTROL.info("No connection rule content found ,use default empty rule ");
connectionControlRule = new ConnectionControlRule();
connectionControlRule = connectionControlRuleParser.parseRule("");
}
}
@ -127,7 +127,7 @@ public abstract class ConnectionControlManager {
* check connection allowed.
*
* @param connectionCheckRequest connectionCheckRequest.
* @return
* @return connection check response
*/
public abstract ConnectionCheckResponse check(ConnectionCheckRequest connectionCheckRequest);