Make the ServiceIdentifier interface sealed

This commit is contained in:
Ravi Khadiwala authored and ravi-signal committed 2024-01-19 13:57:20 -06:00
1 parent 70134507f8
commit db4aa99ce0
1 file changed
+1 -1
@@ -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.