diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/identity/ServiceIdentifier.java b/service/src/main/java/org/whispersystems/textsecuregcm/identity/ServiceIdentifier.java index 43c0d03b3..690b0b81b 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/identity/ServiceIdentifier.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/identity/ServiceIdentifier.java @@ -18,7 +18,7 @@ import org.signal.libsignal.protocol.ServiceId; description = "A service identifier is a tuple of a UUID and identity type that identifies an account and identity within the Signal service.", subTypes = {AciServiceIdentifier.class, PniServiceIdentifier.class} ) -public interface ServiceIdentifier { +public sealed interface ServiceIdentifier permits AciServiceIdentifier, PniServiceIdentifier { /** * Returns the identity type of this account identifier.