Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactoring more duplicated code out of collection classes into GroupableResourcesImpl base class #855

Merged
merged 6 commits into from
Jun 18, 2016
Merged

Conversation

martinsawicki
Copy link

includes renames for better consistency and simplicity:

  • createFluentModel --> wrapModel
  • converter.convert --> wrapList
    btw - wrapList is now smart enough to decide on its own whether to convert to PagedList or not, before wrapping in fluent models, so the caller doesn't need to think about that.
    This also allows us to remove a lot of redundant/repetitive code and ensure better consistency across impls.

unknown added 3 commits June 17, 2016 18:45
…se class to remove excessive code duplication

also, introducing consistent, short, hopefully more intuitive naming:
* createFluentModel --> wrapModel
* convert --> wrapList
also, removing more redundant code
@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@martinsawicki martinsawicki merged commit 64c55b9 into Azure:master Jun 18, 2016
jianghaolu pushed a commit to jianghaolu/azure-sdk-for-java that referenced this pull request Feb 27, 2017
refactoring more duplicated code out of collection classes into GroupableResourcesImpl base class
jianghaolu pushed a commit to jianghaolu/azure-sdk-for-java that referenced this pull request Feb 27, 2017
refactoring more duplicated code out of collection classes into GroupableResourcesImpl base class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants