Make the ServiceIdentifier interface sealed

This commit is contained in:
Ravi Khadiwala
2024-01-19 12:00:28 -06:00
committed by ravi-signal
parent 70134507f8
commit db4aa99ce0

View File

@@ -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.