-
Notifications
You must be signed in to change notification settings - Fork 187
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
Appush: Add adapter #2142
Appush: Add adapter #2142
Conversation
import lombok.Value; | ||
|
||
@AllArgsConstructor(staticName = "of") | ||
@Value |
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.
@Value(staticConstrucor= "of")
String type; | ||
|
||
@JsonProperty(value = "placementId") | ||
@JsonInclude(JsonInclude.Include.NON_EMPTY) |
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.
Looks useless, this should be held on bidder-code side, same for line 19
} | ||
} | ||
|
||
throw new PreBidException(String.format(FAILED_TO_FIND_IMPRESSION_ERROR_MESSAGE, impId)); |
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.
WE don't need FAILED_TO_FIND_IMPRESSION_ERROR_MESSAGE constant, pls just inline this
return imp.toBuilder().ext(modifiedImpExtBidder).build(); | ||
} | ||
|
||
private AppushImpExtBidder buildImpExtAppushWithType(ExtImpAppush extImpAppush) { |
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.
Pls rename to resolveImpExt()
Also method can be static
|
||
private AppushImpExtBidder buildImpExtAppushWithType(ExtImpAppush extImpAppush) { | ||
|
||
AppushImpExtBidder.AppushImpExtBidderBuilder builder = AppushImpExtBidder.builder(); |
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.
We prefer to use final keyword for variables, pls check similar occurrences
No description provided.