From c9906b54ae8b723f0aaa6a798e56d6318cb53484 Mon Sep 17 00:00:00 2001 From: Peter De Maeyer Date: Sun, 21 Feb 2021 20:51:08 +0100 Subject: [PATCH] 329 Replaced > with > in JavaDoc which was causing build failures with some JDKs --- hamcrest/src/main/java/org/hamcrest/Matchers.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hamcrest/src/main/java/org/hamcrest/Matchers.java b/hamcrest/src/main/java/org/hamcrest/Matchers.java index 32125b9b..1095e06a 100644 --- a/hamcrest/src/main/java/org/hamcrest/Matchers.java +++ b/hamcrest/src/main/java/org/hamcrest/Matchers.java @@ -1716,7 +1716,7 @@ public static org.hamcrest.Matcher hasXPath(java.lang.String x * Creates a {@link Throws} object that matches a throwable according to the given throwable matcher. * This can be used with the {@link MatcherAssert#assertThat(String, Executable, Throws)} family of methods. * For example: - *
assertThat(() -> methodCallThatThrowsException(), doesThrow(withMessage("file not found")))
+ *
assertThat(() -> methodCallThatThrowsException(), doesThrow(withMessage("file not found")))
* * @param throwableMatcher * the matcher for the throwable to match, which must not be {@code null} @@ -1729,7 +1729,7 @@ public static Throws doesThrow(MatcherassertThat(() -> methodCallThatThrowsIOException(), throwsInstanceOf(IOException.class)) + *
assertThat(() -> methodCallThatThrowsIOException(), throwsInstanceOf(IOException.class))
* This is shorthand for {@code doesThrow(instanceOf(MyThrowable.class))}, to be used as equivalent for JUnit 5's * {@code assertThrows(MyThrowable.class, () -> {})}. * @@ -1744,7 +1744,7 @@ public static Throws throwsInstanceOf(Class throwabl * Creates a matcher that matches a throwable by matching its message. * This can be used with the {@link MatcherAssert#assertThat(String, Executable, Throws)} family of methods. * For example: - *
assertThat(() -> methodCallThatThrowsException(), doesThrow(withMessage(startsWith("file not found"))))
+ *
assertThat(() -> methodCallThatThrowsException(), doesThrow(withMessage(startsWith("file not found"))))
* * @param messageMatcher * the matcher to match the throwable's message with, which must not be {@code null} @@ -1757,7 +1757,7 @@ public static Matcher withMessage(Matcher messa * Creates a matcher that matches a throwable by its message. * This can be used with the {@link MatcherAssert#assertThat(String, Executable, Throws)} family of methods. * For example: - *
assertThat(() -> methodCallThatThrowsException(), doesThrow(withMessage("message")))
+ *
assertThat(() -> methodCallThatThrowsException(), doesThrow(withMessage("message")))
* This is shorthand for {@code doesThrow(withMessage(equalTo("message")))}. * * @param messageToMatch @@ -1771,7 +1771,7 @@ public static Matcher withMessage(String messageToMatch * Creates a matcher that matches an outer throwable by matching its inner cause. * This can be used with the {@link MatcherAssert#assertThat(String, Executable, Throws)} family of methods. * For example: - *
assertThat(() -> methodCallThatThrowsInvocationTargetException(), doesThrow(becauseOf(instanceOf(IOException.class))))
+ *
assertThat(() -> methodCallThatThrowsInvocationTargetException(), doesThrow(becauseOf(instanceOf(IOException.class))))
* * @param causeMatcher * the matcher to matcher the outer throwable's inner cause with, which must not be {@code null}