Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Updated DynamicComposite to override super's addComponent methods #597

Merged
merged 1 commit into from Mar 14, 2013

Conversation

Projects
None yet
2 participants
Contributor

thrykol commented Mar 14, 2013

In order to use chaining when adding components to a DynamicComposite, the resulting object currently has to be cast as a DynamicComposite as the return type for addComponent is AbstractComposite.

I've updated DynamicComposite to override each addComponent method in AbstractComposite so that the DynamicComposite object can be returned.

Collaborator

zznate commented Mar 14, 2013

Nice. Thanks!

zznate added a commit that referenced this pull request Mar 14, 2013

Merge pull request #597 from hector-client/dynamiccomposite
Updated DynamicComposite to override super's addComponent methods

@zznate zznate merged commit 3e25279 into master Mar 14, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment