File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
fluss-client/src/main/java/org/apache/fluss/client/converter Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2424
2525import java .math .BigDecimal ;
2626import java .util .Arrays ;
27- import java .util .HashMap ;
27+ import java .util .EnumMap ;
2828import java .util .HashSet ;
2929import java .util .Map ;
3030import java .util .Set ;
@@ -43,7 +43,7 @@ final class ConverterCommons {
4343 static final Map <DataTypeRoot , Set <Class <?>>> SUPPORTED_TYPES = createSupportedTypes ();
4444
4545 private static Map <DataTypeRoot , Set <Class <?>>> createSupportedTypes () {
46- Map <DataTypeRoot , Set <Class <?>>> map = new HashMap <>();
46+ Map <DataTypeRoot , Set <Class <?>>> map = new EnumMap <>(DataTypeRoot . class );
4747 map .put (DataTypeRoot .BOOLEAN , setOf (Boolean .class ));
4848 map .put (DataTypeRoot .TINYINT , setOf (Byte .class ));
4949 map .put (DataTypeRoot .SMALLINT , setOf (Short .class ));
You can’t perform that action at this time.
0 commit comments