Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoxaAntoxic committed Oct 20, 2023
1 parent 7c11a10 commit e819130
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ private static String makeUrl(MonitorEventType eventType, String url) {
case CLICK -> "<ClickTracking><![CDATA[" + url + "]]></ClickTracking>";
case IMP -> "<Impression><![CDATA[" + url + "]]></Impression>";
case VAST_ERROR -> "<Error><![CDATA[" + url + "&et=[ERRORCODE]]]></Error>";
default -> "";
default -> StringUtils.EMPTY;
};
}

Expand Down Expand Up @@ -298,7 +298,7 @@ private static String makeDspClickTrackings(Content content) {
.filter(Objects::nonNull)
.map(tracking -> "\"" + tracking + "\"")
.collect(Collectors.joining(",")))
.orElse("");
.orElse(StringUtils.EMPTY);
}

private static String makeDspImpTrackings(Content content) {
Expand All @@ -312,7 +312,7 @@ private static String makeDspImpTrackings(Content content) {
.map(list -> list.stream()
.map(tracking -> "<img height=\"1\" width=\"1\" src='" + tracking + "' > ")
.collect(Collectors.joining()))
.orElse("");
.orElse(StringUtils.EMPTY);
}

public HuaweiAdm buildNative(AdsType adType, Content content, Native xNative) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private Regs makeRegs(com.iab.openrtb.request.Regs regs) {
.map(com.iab.openrtb.request.Regs::getCoppa)
.filter(coppa -> coppa >= 0)
.map(Regs::of)
.orElse(Regs.of(null));
.orElseGet(() -> Regs.of(null));
}

private Geo makeGeo(com.iab.openrtb.request.Device device) {
Expand Down Expand Up @@ -349,7 +349,7 @@ private String getNurl(List<Monitor> monitorList) {
.map(Monitor::getUrlList)
.flatMap(Collection::stream)
.findFirst()
.orElse("");
.orElse(StringUtils.EMPTY);
}

}

0 comments on commit e819130

Please sign in to comment.