-
Notifications
You must be signed in to change notification settings - Fork 217
refactor: isolate index handling to BulkDependentResource interface #1504
New issue
Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “No 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? No Sign in to your account
Conversation
pls revert this change on original branch |
private final List<ResourceDiscriminator<R, P>> resourceDiscriminator = new ArrayList<>(1); | ||
private final BulkDependentResource<R, P> bulkDependentResource; | ||
private ResourceDiscriminator<R, P> resourceDiscriminator; | ||
private int currentCount; |
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.
Same problem here, what mentioned on other PR, that this cannot be a global variable
Kudos, SonarCloud Quality Gate passed! |
*/ | ||
Result<R> match(R actualResource, P primary, int index, Context<P> context); | ||
|
||
Optional<R> getSecondaryResource(P primary, int index, Context<P> context); |
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.
So maybe this should be List<R> getSecondryResources(P primary, Context<P> context)
Superseded by #1517 |
No description provided.