You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2023/05/16 10:29:05 UTC
[shardingsphere] branch master updated: Fix sonar issues of MySQLBinlogProtocolValueFactory (#25703)
This is an automated email from the ASF dual-hosted git repository.
panjuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new c3a7dcc9ef1 Fix sonar issues of MySQLBinlogProtocolValueFactory (#25703)
c3a7dcc9ef1 is described below
commit c3a7dcc9ef13d30304556043cd80134a2b36fb5a
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Tue May 16 18:28:57 2023 +0800
Fix sonar issues of MySQLBinlogProtocolValueFactory (#25703)
* Fix sonar issues of DefaultLoggingRuleConfigurationBuilder
* Fix sonar issues of MySQLBinlogProtocolValueFactory
---
.../binlog/row/column/value/MySQLBinlogProtocolValueFactory.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/db-protocol/mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/binlog/row/column/value/MySQLBinlogProtocolValueFactory.java b/db-protocol/mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/binlog/row/column/value/MySQLBinlogProtocolValueFactory.java
index a2340ab8d9b..2ecb64c3082 100644
--- a/db-protocol/mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/binlog/row/column/value/MySQLBinlogProtocolValueFactory.java
+++ b/db-protocol/mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/binlog/row/column/value/MySQLBinlogProtocolValueFactory.java
@@ -43,7 +43,7 @@ import org.apache.shardingsphere.db.protocol.mysql.packet.binlog.row.column.valu
import org.apache.shardingsphere.db.protocol.mysql.packet.binlog.row.column.value.time.MySQLTimestampBinlogProtocolValue;
import org.apache.shardingsphere.db.protocol.mysql.packet.binlog.row.column.value.time.MySQLYearBinlogProtocolValue;
-import java.util.HashMap;
+import java.util.EnumMap;
import java.util.Map;
/**
@@ -52,7 +52,7 @@ import java.util.Map;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class MySQLBinlogProtocolValueFactory {
- private static final Map<MySQLBinaryColumnType, MySQLBinlogProtocolValue> BINLOG_PROTOCOL_VALUES = new HashMap<>();
+ private static final Map<MySQLBinaryColumnType, MySQLBinlogProtocolValue> BINLOG_PROTOCOL_VALUES = new EnumMap<>(MySQLBinaryColumnType.class);
static {
registerIntegerTypeValue();