Skip to content

Commit 15de782

Browse files
committed
Fix comments
1 parent 8bbf944 commit 15de782

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/main/java/org/prebid/server/auction/ExchangeService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ private static ExtRequestTargeting targeting(BidRequest bidRequest) {
314314
}
315315

316316
private static BidRequestCacheInfo bidRequestCacheInfo(BidRequest bidRequest, Account account) {
317-
final Boolean cachingEnabled = Optional.ofNullable(account)
317+
final boolean cachingEnabled = Optional.ofNullable(account)
318318
.map(Account::getAuction)
319319
.map(AccountAuctionConfig::getCache)
320320
.map(AccountCacheConfig::getEnabled)

src/main/java/org/prebid/server/settings/model/AccountCacheConfig.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
package org.prebid.server.settings.model;
22

3-
import lombok.Builder;
43
import lombok.Value;
54

6-
@Builder(toBuilder = true)
7-
@Value
5+
@Value(staticConstructor = "of")
86
public class AccountCacheConfig {
97

108
Boolean enabled;

src/test/java/org/prebid/server/auction/ExchangeServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1664,7 +1664,7 @@ public void shouldCallBidResponseCreatorWithCachingDisabledWhenCachingIsNotEnabl
16641664
.id("accountId")
16651665
.auction(AccountAuctionConfig.builder()
16661666
.events(AccountEventsConfig.of(true))
1667-
.cache(AccountCacheConfig.builder().enabled(false).build())
1667+
.cache(AccountCacheConfig.of(false))
16681668
.build())
16691669
.build()));
16701670

0 commit comments

Comments
 (0)