Remove UuidRecipientError.

fork-5.53.8
Greyson Parrelli 2020-07-31 14:32:36 -04:00
rodzic 33cc8363f9
commit 2dcaa21a44
2 zmienionych plików z 1 dodań i 7 usunięć

Wyświetl plik

@ -2737,7 +2737,4 @@ public class RecipientDatabase extends Database {
this.neededInsert = neededInsert;
}
}
private static class UuidRecipientError extends AssertionError {
}
}

Wyświetl plik

@ -221,7 +221,7 @@ public class Recipient {
RecipientId id = null;
if (UuidUtil.isUuid(identifier)) {
throw new UuidRecipientError();
throw new AssertionError("UUIDs are not valid system contact identifiers!");
} else if (NumberUtil.isValidEmail(identifier)) {
id = db.getOrInsertFromEmail(identifier);
} else {
@ -875,7 +875,4 @@ public class Recipient {
private static class MissingAddressError extends AssertionError {
}
private static class UuidRecipientError extends AssertionError {
}
}