Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
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.
Attachments
Attachments
Issue Links
- is depended upon by
-
ZOOKEEPER-1285 make DataTree immutable
- Open