Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
tools
Description
In class OfflineImageReconstructor, it uses many SectionProcessors to process xml files and load the subtree of the XML into a Node structure. But there are lots of places that node removes key by directively writing value in methods rather than define them first. Like this:
Node expiration = directive.removeChild("expiration");
We could improve this to define them in Node and them invoked like this way:
Node expiration=directive.removeChild(Node.CACHE_MANAGER_SECTION_EXPIRATION);
And it will be good to manager node key's name in the future.