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

Resource method blacklist #23

Open
wants to merge 10 commits into
base: revolver-callback
Choose a base branch
from

Conversation

himadrisj
Copy link
Collaborator

No description provided.

}

ResourceModel.Builder newResourceModelBuilder = new ResourceModel.Builder(false);
for (final Resource resource : resourceModel.getResources()) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refactor to reduce cyclomatic complexity for the nested for and if branches. probably use java 8 streams and collectors with filters

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Streams would be difficult to use here.

return subResourceModel;
}

private boolean shouldAddMethod(final ResourceMethod method) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably use as a predicate for filter to check if resource method is blacklisted

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.

2 participants