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

Rubicon: Support multiformat parameter #2083

Merged
merged 2 commits into from
Jan 3, 2023

Conversation

SerhiiNahornyi
Copy link
Collaborator

No description provided.

Comment on lines +219 to +226
final Set<Map.Entry<Imp, ExtPrebid<ExtImpPrebid, ExtImpRubicon>>> nonMultiformatImpToImpExt = new HashSet<>();
impToImpExt.entrySet().forEach(entry -> {
if (isMultiformatEnabled(entry.getValue())) {
multiformatImpToImpExt.addAll(separateImpByMediaType(entry));
} else {
nonMultiformatImpToImpExt.add(entry);
}
});
Copy link
Collaborator

Choose a reason for hiding this comment

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

What about to extract this to separate method?

private static Set<Map.Entry<...>> method(... impToImpExt) { ... }

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In that way, we need to create two methods if we don't want to work with references.
So I would like to have everything as it is

@SerhiiNahornyi SerhiiNahornyi merged commit 09feb4b into master Jan 3, 2023
@SerhiiNahornyi SerhiiNahornyi deleted the rubicon/multiformat-support branch January 3, 2023 12:40
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