From 76d1382d9a4d64cf094d7039c546e29692de8e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCrten?= Date: Wed, 1 Feb 2017 14:04:10 +0100 Subject: [PATCH] Fix some Javadoc typos --- src/org/thoughtcrime/securesms/RegistrationActivity.java | 2 +- .../thoughtcrime/securesms/contacts/ContactAccessor.java | 2 +- .../securesms/crypto/AsymmetricMasterCipher.java | 2 +- src/org/thoughtcrime/securesms/util/Base64.java | 6 +++--- src/org/thoughtcrime/securesms/util/MathUtils.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/org/thoughtcrime/securesms/RegistrationActivity.java b/src/org/thoughtcrime/securesms/RegistrationActivity.java index 17f81cf1a7..2d2673bfb9 100644 --- a/src/org/thoughtcrime/securesms/RegistrationActivity.java +++ b/src/org/thoughtcrime/securesms/RegistrationActivity.java @@ -104,7 +104,7 @@ import java.util.Locale; import java.util.concurrent.TimeUnit; /** - * The register account activity. Prompts ths user for their registration information + * The register account activity. Prompts the user for their registration information * and begins the account registration process. * * @author Moxie Marlinspike diff --git a/src/org/thoughtcrime/securesms/contacts/ContactAccessor.java b/src/org/thoughtcrime/securesms/contacts/ContactAccessor.java index 2910a971e9..e7e5027486 100644 --- a/src/org/thoughtcrime/securesms/contacts/ContactAccessor.java +++ b/src/org/thoughtcrime/securesms/contacts/ContactAccessor.java @@ -46,7 +46,7 @@ import static org.thoughtcrime.securesms.database.GroupDatabase.GroupRecord; /** * This class was originally a layer of indirection between - * ContactAccessorNewApi and ContactAccesorOldApi, which corresponded + * ContactAccessorNewApi and ContactAccessorOldApi, which corresponded * to the API changes between 1.x and 2.x. * * Now that we no longer support 1.x, this class mostly serves as a place diff --git a/src/org/thoughtcrime/securesms/crypto/AsymmetricMasterCipher.java b/src/org/thoughtcrime/securesms/crypto/AsymmetricMasterCipher.java index c38c5d08ca..b2b0a1cdcb 100644 --- a/src/org/thoughtcrime/securesms/crypto/AsymmetricMasterCipher.java +++ b/src/org/thoughtcrime/securesms/crypto/AsymmetricMasterCipher.java @@ -34,7 +34,7 @@ import javax.crypto.Mac; import javax.crypto.spec.SecretKeySpec; /** - * This class is used to asymmetricly encrypt local data. This is used in the case + * This class is used to asymmetrically encrypt local data. This is used in the case * where TextSecure receives an SMS, but the user's local encryption passphrase is * not cached (either because of a timeout, or because it hasn't yet been entered). * diff --git a/src/org/thoughtcrime/securesms/util/Base64.java b/src/org/thoughtcrime/securesms/util/Base64.java index 0f824b43bb..f393efd2f8 100644 --- a/src/org/thoughtcrime/securesms/util/Base64.java +++ b/src/org/thoughtcrime/securesms/util/Base64.java @@ -65,7 +65,7 @@ package org.thoughtcrime.securesms.util; * RFC3548. *
  • Throws exceptions instead of returning null values. Because some operations * (especially those that may permit the GZIP option) use IO streams, there - * is a possiblity of an java.io.IOException being thrown. After some discussion and + * is a possibility of an java.io.IOException being thrown. After some discussion and * thought, I've changed the behavior of the methods to throw java.io.IOExceptions * rather than return null if ever there's an error. I think this is more * appropriate, though it will require some changes to your code. Sorry, @@ -479,7 +479,7 @@ public class Base64 * anywhere along their length by specifying * srcOffset and destOffset. * This method does not check to make sure your arrays - * are large enough to accomodate srcOffset + 3 for + * are large enough to accommodate srcOffset + 3 for * the source array or destOffset + 4 for * the destination array. * The actual number of significant bytes in your array is @@ -1027,7 +1027,7 @@ public class Base64 * anywhere along their length by specifying * srcOffset and destOffset. * This method does not check to make sure your arrays - * are large enough to accomodate srcOffset + 4 for + * are large enough to accommodate srcOffset + 4 for * the source array or destOffset + 3 for * the destination array. * This method returns the actual number of bytes that diff --git a/src/org/thoughtcrime/securesms/util/MathUtils.java b/src/org/thoughtcrime/securesms/util/MathUtils.java index 93842ea03c..66a9587c09 100644 --- a/src/org/thoughtcrime/securesms/util/MathUtils.java +++ b/src/org/thoughtcrime/securesms/util/MathUtils.java @@ -30,7 +30,7 @@ public class MathUtils { * * @param a beginning of 2 vectors * @param b end of vector 1 - * @param c enf of vector 2 + * @param c end of vector 2 * @return cross product AB * AC */ private static float crossProduct(@NonNull PointF a, @NonNull PointF b, @NonNull PointF c) {