diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/SubscriptionController.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/SubscriptionController.java index 2b6e6a6a6..55cdd26c2 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/SubscriptionController.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/SubscriptionController.java @@ -29,7 +29,6 @@ import java.util.Map.Entry; import java.util.Objects; import java.util.Optional; import java.util.concurrent.CompletableFuture; -import java.util.function.Function; import java.util.stream.Collectors; import javax.annotation.Nonnull; import javax.crypto.Mac; @@ -408,7 +407,7 @@ public class SubscriptionController { public CompletableFuture getBoostAmounts() { return CompletableFuture.supplyAsync(() -> Response.ok( boostConfiguration.getCurrencies().entrySet().stream().collect( - Collectors.toMap(entry -> entry.getKey().toUpperCase(Locale.ROOT), Function.identity()))).build()); + Collectors.toMap(entry -> entry.getKey().toUpperCase(Locale.ROOT), Entry::getValue))).build()); } public static class CreateBoostRequest {