DataTree deserialization methods should return DataTree instance
----------------------------------------------------------------

                 Key: ZOOKEEPER-1287
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1287
             Project: ZooKeeper
          Issue Type: Sub-task
            Reporter: Thomas Koch
            Assignee: Thomas Koch
            Priority: Minor


There are a couple of deserialization methods that all receive a new DataTree 
instance as parameter forwarding this instance in a row until the last in the 
row populates this instance. While this pattern is derived from jute there's no 
reason not to instantiate a new DataTree object in the last deserialization 
method and returning it through the stack. That makes it easier to reason about 
the code because it then is obvious that the DataTree instance worked on is 
indeed a new instance.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to