diff --git a/core/src/main/java/com/google/common/truth/MapSubject.java b/core/src/main/java/com/google/common/truth/MapSubject.java index 17baa7dc3..1b4d01a43 100644 --- a/core/src/main/java/com/google/common/truth/MapSubject.java +++ b/core/src/main/java/com/google/common/truth/MapSubject.java @@ -46,7 +46,7 @@ import org.jspecify.annotations.Nullable; /** - * A subject for {@link Map} subjects. + * A subject for {@link Map} values. * * @author Christian Gruber * @author Kurt Alfred Kluever diff --git a/core/src/main/java/com/google/common/truth/MultimapSubject.java b/core/src/main/java/com/google/common/truth/MultimapSubject.java index a4a26049d..a891d3955 100644 --- a/core/src/main/java/com/google/common/truth/MultimapSubject.java +++ b/core/src/main/java/com/google/common/truth/MultimapSubject.java @@ -48,7 +48,7 @@ import org.jspecify.annotations.Nullable; /** - * A subject for {@link Multimap} subjects. + * A subject for {@link Multimap} values. * * @author Daniel Ploch * @author Kurt Alfred Kluever 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 85fb1abc2..761b80cb1 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 @@ -55,9 +55,9 @@ static boolean isInstanceOfType(Object instance, Class clazz) { return false; } - /** Determines if the given subject contains a match for the given regex. */ - static boolean containsMatch(String subject, String regex) { - return compile(regex).test(subject); + /** Determines if the given actual value contains a match for the given regex. */ + static boolean containsMatch(String actual, String regex) { + return compile(regex).test(actual); } static void cleanStackTrace(Throwable throwable) {