-
Type:
Sub-task
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 3.8.0
-
Component/s: None
-
Labels:None
There are two places where large switch statements do nothing else to get the correct Record class accorging to a txn type. Provided a static map in SerializeUtils from type to Class<? extends Record> and a method to retrieve a new txn Record instance for a type.
Code size reduced by 28 lines.
- is depended upon by
-
ZOOKEEPER-1285 make DataTree immutable
-
- Open
-