From b3619e9cffebaae3168d2347e8f197f2e7c02f9b Mon Sep 17 00:00:00 2001 From: hpa16 Date: Fri, 23 Sep 2022 18:17:50 +0530 Subject: [PATCH] fix grammar in doc comments --- .../google/common/truth/IterableSubject.java | 22 +++++++++---------- .../com/google/common/truth/Platform.java | 2 +- .../com/google/common/truth/Platform.java | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/core/src/main/java/com/google/common/truth/IterableSubject.java b/core/src/main/java/com/google/common/truth/IterableSubject.java index f02410533..fd4194123 100644 --- a/core/src/main/java/com/google/common/truth/IterableSubject.java +++ b/core/src/main/java/com/google/common/truth/IterableSubject.java @@ -104,7 +104,7 @@ protected IterableSubject(FailureMetadata metadata, @Nullable Iterable iterab protected String actualCustomStringRepresentation() { if (actual != null) { // Check the value of iterable.toString() against the default Object.toString() implementation - // so we can avoid things like "com.google.common.graph.Traverser$GraphTraverser$1@5e316c74" + // so that we can avoid things like "com.google.common.graph.Traverser$GraphTraverser$1@5e316c74" String objectToString = actual.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(actual)); if (actual.toString().equals(objectToString)) { @@ -243,7 +243,7 @@ public final void containsAnyIn(Object[] expected) { } /** - * Checks that the actual iterable contains at least all of the expected elements or fails. If an + * Checks that the actual iterable contains at least all the expected elements or fails. If an * element appears more than once in the expected elements to this call then it must appear at * least that number of times in the actual elements. * @@ -260,7 +260,7 @@ public final Ordered containsAtLeast( } /** - * Checks that the actual iterable contains at least all of the expected elements or fails. If an + * Checks that the actual iterable contains at least all the expected elements or fails. If an * element appears more than once in the expected elements then it must appear at least that * number of times in the actual elements. * @@ -319,7 +319,7 @@ public void inOrder() { } /** - * Checks that the actual iterable contains at least all of the expected elements or fails. If an + * Checks that the actual iterable contains at least all the expected elements or fails. If an * element appears more than once in the expected elements then it must appear at least that * number of times in the actual elements. * @@ -688,7 +688,7 @@ enum ElementFactGrouping { } /** - * Checks that a actual iterable contains none of the excluded objects or fails. (Duplicates are + * Checks that an actual iterable contains none of the excluded objects or fails. (Duplicates are * irrelevant to this test, which fails if any of the actual elements equal any of the excluded.) */ public final void containsNoneOf( @@ -986,7 +986,7 @@ public static class UsingCorrespondence { * *

On assertions where it makes sense to do so, the elements are paired as follows: they are * keyed by {@code keyFunction}, and if an unexpected element and a missing element have the - * same non-null key then the they are paired up. (Elements with null keys are not paired.) The + * same non-null key then they are paired up. (Elements with null keys are not paired.) The * failure message will show paired elements together, and a diff will be shown if the {@link * Correspondence#formatDiff} method returns non-null. * @@ -1028,7 +1028,7 @@ public UsingCorrespondence displayingDiffsPairedBy(Function *

On assertions where it makes sense to do so, the elements are paired as follows: the * unexpected elements are keyed by {@code actualKeyFunction}, the missing elements are keyed by * {@code expectedKeyFunction}, and if an unexpected element and a missing element have the same - * non-null key then the they are paired up. (Elements with null keys are not paired.) The + * non-null key then they are paired up. (Elements with null keys are not paired.) The * failure message will show paired elements together, and a diff will be shown if the {@link * Correspondence#formatDiff} method returns non-null. * @@ -1502,7 +1502,7 @@ private boolean failIfOneToOneMappingHasMissingOrExtra( } /** - * Checks that the subject contains elements that corresponds to all of the expected elements, + * Checks that the subject contains elements that correspond to all the expected elements, * i.e. that there is a 1:1 mapping between any subset of the actual elements and the expected * elements where each pair of elements correspond. * @@ -1518,7 +1518,7 @@ public final Ordered containsAtLeast( } /** - * Checks that the subject contains elements that corresponds to all of the expected elements, + * Checks that the subject contains elements that correspond to all the expected elements, * i.e. that there is a 1:1 mapping between any subset of the actual elements and the expected * elements where each pair of elements correspond. * @@ -1584,7 +1584,7 @@ public void inOrder() { } /** - * Checks that the subject contains elements that corresponds to all of the expected elements, + * Checks that the subject contains elements that correspond to all the expected elements, * i.e. that there is a 1:1 mapping between any subset of the actual elements and the expected * elements where each pair of elements correspond. * @@ -2046,7 +2046,7 @@ List pairOne( } } - /** An description of a pairing between expected and actual values. N.B. This is mutable. */ + /** A description of a pairing between expected and actual values. N.B. This is mutable. */ private final class Pairing { /** diff --git a/core/src/main/java/com/google/common/truth/Platform.java b/core/src/main/java/com/google/common/truth/Platform.java index aea7d0fd2..9c4986b21 100644 --- a/core/src/main/java/com/google/common/truth/Platform.java +++ b/core/src/main/java/com/google/common/truth/Platform.java @@ -52,7 +52,7 @@ static boolean containsMatch(String actual, String regex) { } /** - * Returns an array containing all of the exceptions that were suppressed to deliver the given + * Returns an array containing all the exceptions that were suppressed to deliver the given * exception. If suppressed exceptions are not supported (pre-Java 1.7), an empty array will be * returned. */ diff --git a/core/src/main/java/com/google/common/truth/super/com/google/common/truth/Platform.java b/core/src/main/java/com/google/common/truth/super/com/google/common/truth/Platform.java index 3d985ec11..c561c74b2 100644 --- a/core/src/main/java/com/google/common/truth/super/com/google/common/truth/Platform.java +++ b/core/src/main/java/com/google/common/truth/super/com/google/common/truth/Platform.java @@ -72,7 +72,7 @@ static boolean containsMatch(String subject, String regex) { } /** - * Returns an array containing all of the exceptions that were suppressed to deliver the given + * Returns an array containing all the exceptions that were suppressed to deliver the given * exception. Delegates to the getSuppressed() method on Throwable that is available in Java 1.7+ */ static Throwable[] getSuppressed(Throwable throwable) {