This is an automated email from the ASF dual-hosted git repository.
ipolyzos pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fluss.git
The following commit(s) were added to refs/heads/main by this push:
new c2a785f20 [hotfix][client] Use more efficient `EnumMap` (#1882)
c2a785f20 is described below
commit c2a785f2075e785a07e034523594179421ede77a
Author: Sergey Nuyanzin <[email protected]>
AuthorDate: Thu Oct 30 09:24:45 2025 +0100
[hotfix][client] Use more efficient `EnumMap` (#1882)
---
.../main/java/org/apache/fluss/client/converter/ConverterCommons.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/fluss-client/src/main/java/org/apache/fluss/client/converter/ConverterCommons.java
b/fluss-client/src/main/java/org/apache/fluss/client/converter/ConverterCommons.java
index f7766d36d..4a1e99246 100644
---
a/fluss-client/src/main/java/org/apache/fluss/client/converter/ConverterCommons.java
+++
b/fluss-client/src/main/java/org/apache/fluss/client/converter/ConverterCommons.java
@@ -24,7 +24,7 @@ import org.apache.fluss.types.RowType;
import java.math.BigDecimal;
import java.util.Arrays;
-import java.util.HashMap;
+import java.util.EnumMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
@@ -43,7 +43,7 @@ final class ConverterCommons {
static final Map<DataTypeRoot, Set<Class<?>>> SUPPORTED_TYPES =
createSupportedTypes();
private static Map<DataTypeRoot, Set<Class<?>>> createSupportedTypes() {
- Map<DataTypeRoot, Set<Class<?>>> map = new HashMap<>();
+ Map<DataTypeRoot, Set<Class<?>>> map = new
EnumMap<>(DataTypeRoot.class);
map.put(DataTypeRoot.BOOLEAN, setOf(Boolean.class));
map.put(DataTypeRoot.TINYINT, setOf(Byte.class));
map.put(DataTypeRoot.SMALLINT, setOf(Short.class));