-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: revolver-callback
Are you sure you want to change the base?
Conversation
} | ||
|
||
ResourceModel.Builder newResourceModelBuilder = new ResourceModel.Builder(false); | ||
for (final Resource resource : resourceModel.getResources()) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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
No description provided.