From f3744fbcb1a7191e5b070ac34025b8072e62f143 Mon Sep 17 00:00:00 2001 From: Chris Eager Date: Sat, 18 Oct 2025 14:11:25 -0500 Subject: [PATCH] Address deprecated methods --- .../textsecuregcm/subscriptions/StripeManager.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/subscriptions/StripeManager.java b/service/src/main/java/org/whispersystems/textsecuregcm/subscriptions/StripeManager.java index 2ffde74f9..6d1e19391 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/subscriptions/StripeManager.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/subscriptions/StripeManager.java @@ -6,7 +6,6 @@ package org.whispersystems.textsecuregcm.subscriptions; import com.google.common.annotations.VisibleForTesting; -import com.google.common.base.Strings; import com.google.common.collect.Lists; import com.stripe.Stripe; import com.stripe.StripeClient; @@ -120,7 +119,7 @@ public class StripeManager implements CustomerAwareSubscriptionPaymentProcessor @Nonnull Map> supportedCurrenciesByPaymentMethod) { this(new StripeClient(apiKey), executor, idempotencyKeyGenerator, boostDescription, supportedCurrenciesByPaymentMethod); - if (Strings.isNullOrEmpty(apiKey)) { + if (StringUtils.isEmpty(apiKey)) { throw new IllegalArgumentException("apiKey cannot be empty"); } } @@ -655,10 +654,10 @@ public class StripeManager implements CustomerAwareSubscriptionPaymentProcessor if (latestSubscriptionInvoice == null) { throw new SubscriptionReceiptRequestedForOpenPaymentException(); } - if (StringUtils.equalsIgnoreCase("open", latestSubscriptionInvoice.getStatus())) { + if ("open".equalsIgnoreCase(latestSubscriptionInvoice.getStatus())) { throw new SubscriptionReceiptRequestedForOpenPaymentException(); } - if (!StringUtils.equalsIgnoreCase("paid", latestSubscriptionInvoice.getStatus())) { + if (!"paid".equalsIgnoreCase(latestSubscriptionInvoice.getStatus())) { final Optional latestInvoicePayment = latestSubscriptionInvoice.getPayments().getData() .stream()