From b6bf6c994cf4a6fc11bd2dafe3ac5019ef5b119c Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Fri, 26 Aug 2022 15:22:23 -0400 Subject: [PATCH] Remove a spurious `@Nullable` annotation --- .../main/java/org/whispersystems/textsecuregcm/util/Util.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/util/Util.java b/service/src/main/java/org/whispersystems/textsecuregcm/util/Util.java index be3663e50..41aa61449 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/util/Util.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/util/Util.java @@ -8,7 +8,6 @@ import com.google.i18n.phonenumbers.NumberParseException; import com.google.i18n.phonenumbers.PhoneNumberUtil; import com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat; import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; -import org.apache.commons.lang3.StringUtils; import java.time.Clock; import java.time.Duration; import java.time.temporal.ChronoField; @@ -22,7 +21,7 @@ import java.util.concurrent.TimeUnit; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.annotation.Nonnull; -import javax.annotation.Nullable; +import org.apache.commons.lang3.StringUtils; public class Util { @@ -81,7 +80,6 @@ public class Util { else return "0"; } - @Nullable public static String getRegion(final String number) { try { final PhoneNumber phoneNumber = PHONE_NUMBER_UTIL.parse(number, null);