From 2065188a6f2f6fb84961bbef67703d495100c8da Mon Sep 17 00:00:00 2001 From: binh-dam-ibigroup <56846598+binh-dam-ibigroup@users.noreply.github.com> Date: Thu, 31 Oct 2024 14:53:27 -0400 Subject: [PATCH] style(NotificationUtils): Use static import --- .../opentripplanner/middleware/utils/NotificationUtils.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/opentripplanner/middleware/utils/NotificationUtils.java b/src/main/java/org/opentripplanner/middleware/utils/NotificationUtils.java index 26409e74..95370463 100644 --- a/src/main/java/org/opentripplanner/middleware/utils/NotificationUtils.java +++ b/src/main/java/org/opentripplanner/middleware/utils/NotificationUtils.java @@ -31,6 +31,7 @@ import java.util.stream.Collectors; import static java.nio.charset.StandardCharsets.UTF_8; +import static org.opentripplanner.middleware.i18n.Message.TRIP_SURVEY_NOTIFICATION; import static org.opentripplanner.middleware.utils.ConfigUtils.getConfigPropertyAsText; /** @@ -101,10 +102,7 @@ public static String sendTripSurveyPush(OtpUser otpUser, MonitoredTrip trip) { Locale locale = I18nUtils.getOtpUserLocale(otpUser); String tripTime = DateTimeUtils.formatShortDate(trip.itinerary.startTime, locale); - String body = String.format( - org.opentripplanner.middleware.i18n.Message.TRIP_SURVEY_NOTIFICATION.get(locale), - tripTime - ); + String body = String.format(TRIP_SURVEY_NOTIFICATION.get(locale), tripTime); return sendPush(otpUser, body, trip.tripName, trip.id, TRIP_SURVEY_ID); }