From 408b065b9e5b50fec1db186a177941176ab16aee Mon Sep 17 00:00:00 2001 From: Dimitris Apostolou Date: Mon, 15 Jan 2024 18:08:15 +0200 Subject: [PATCH] Fix typos --- .../textsecuregcm/auth/ExternalServiceCredentialsGenerator.java | 2 +- .../textsecuregcm/grpc/ConvertibleToGrpcStatus.java | 2 +- .../grpc/validators/ExactlySizeFieldValidator.java | 2 +- service/src/main/proto/org/signal/chat/credentials.proto | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/auth/ExternalServiceCredentialsGenerator.java b/service/src/main/java/org/whispersystems/textsecuregcm/auth/ExternalServiceCredentialsGenerator.java index 38c9958b1..3317ca4c6 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/auth/ExternalServiceCredentialsGenerator.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/auth/ExternalServiceCredentialsGenerator.java @@ -154,7 +154,7 @@ public class ExternalServiceCredentialsGenerator { /** * Given an instance of {@link ExternalServiceCredentials} object, checks that the password - * matches the username taking into accound this generator's configuration. + * matches the username taking into account this generator's configuration. * @param credentials an instance of {@link ExternalServiceCredentials} * @return An optional with a timestamp (seconds) of when the credentials were generated, * or an empty optional if the password doesn't match the username for any reason (including malformed data) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ConvertibleToGrpcStatus.java b/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ConvertibleToGrpcStatus.java index ce0cc00fb..73fb1cb85 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ConvertibleToGrpcStatus.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/grpc/ConvertibleToGrpcStatus.java @@ -10,7 +10,7 @@ import io.grpc.Status; import java.util.Optional; /** - * Interface to be imlemented by our custom exceptions that are consistently mapped to a gRPC status. + * Interface to be implemented by our custom exceptions that are consistently mapped to a gRPC status. */ public interface ConvertibleToGrpcStatus { diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/grpc/validators/ExactlySizeFieldValidator.java b/service/src/main/java/org/whispersystems/textsecuregcm/grpc/validators/ExactlySizeFieldValidator.java index 90c0e4b54..1bd0ce009 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/grpc/validators/ExactlySizeFieldValidator.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/grpc/validators/ExactlySizeFieldValidator.java @@ -36,7 +36,7 @@ public class ExactlySizeFieldValidator extends BaseFieldValidator> if (permittedSizes.contains(fieldValue.size())) { return; } - throw invalidArgument("byte arrray length is [%d] but expected to be one of %s".formatted(fieldValue.size(), permittedSizes)); + throw invalidArgument("byte array length is [%d] but expected to be one of %s".formatted(fieldValue.size(), permittedSizes)); } @Override diff --git a/service/src/main/proto/org/signal/chat/credentials.proto b/service/src/main/proto/org/signal/chat/credentials.proto index 5ce2bace8..136d5463e 100644 --- a/service/src/main/proto/org/signal/chat/credentials.proto +++ b/service/src/main/proto/org/signal/chat/credentials.proto @@ -36,7 +36,7 @@ service ExternalServiceCredentials { service ExternalServiceCredentialsAnonymous { /** * Given a list of secure value recovery (SVR) service credentials and a phone number, - * checks, which of the provided credetials were generated by the user with the given phone number + * checks, which of the provided credentials were generated by the user with the given phone number * and have not yet expired. * * `UNAUTHENTICATED` status is returned if the call is made on unauthenticated channel.