提交 706f9694 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Specify initial capacity of collections in DataType

上级 70f77ae5
......@@ -66,9 +66,9 @@ public class DataType {
* The list of types. An ArrayList so that Tomcat doesn't set it to null
* when clearing references.
*/
private static final ArrayList<DataType> TYPES = New.arrayList();
private static final HashMap<String, DataType> TYPES_BY_NAME = new HashMap<>();
private static final HashMap<Integer, DataType> TYPES_BY_VALUE_TYPE = new HashMap<>();
private static final ArrayList<DataType> TYPES = new ArrayList<>(96);
private static final HashMap<String, DataType> TYPES_BY_NAME = new HashMap<>(96);
private static final HashMap<Integer, DataType> TYPES_BY_VALUE_TYPE = new HashMap<>(48);
/**
* The value type of this data type.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论