Skip to content

Commit

Permalink
#329 Replaced > with > in JavaDoc which was causing build failures…
Browse files Browse the repository at this point in the history
… with some JDKs
  • Loading branch information
peterdemaeyer committed Feb 21, 2021
1 parent 5058b28 commit 682ca4c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hamcrest/src/main/java/org/hamcrest/Matchers.java
Original file line number Diff line number Diff line change
Expand Up @@ -1716,7 +1716,7 @@ public static org.hamcrest.Matcher<org.w3c.dom.Node> 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:
* <pre>assertThat(() -> methodCallThatThrowsException(), doesThrow(withMessage("file not found")))</pre>
* <pre>assertThat(() -&gt; methodCallThatThrowsException(), doesThrow(withMessage("file not found")))</pre>
*
* @param throwableMatcher
* the matcher for the throwable to match, which must not be {@code null}
Expand All @@ -1729,7 +1729,7 @@ public static <T extends Throwable> Throws<T> doesThrow(Matcher<? super Throwabl
* Creates a {@link Throws} object that matches a throwable of the given type.
* This can be used with the {@link MatcherAssert#assertThat(String, Executable, Throws)} family of methods.
* For example:
* <pre>assertThat(() -> methodCallThatThrowsIOException(), throwsInstanceOf(IOException.class))</pre>
* <pre>assertThat(() -&gt; methodCallThatThrowsIOException(), throwsInstanceOf(IOException.class))</pre>
* This is shorthand for {@code doesThrow(instanceOf(MyThrowable.class))}, to be used as equivalent for JUnit 5's
* {@code assertThrows(MyThrowable.class, () -> {})}.
*
Expand All @@ -1744,7 +1744,7 @@ public static <T extends Throwable> Throws<T> throwsInstanceOf(Class<T> 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:
* <pre>assertThat(() -> methodCallThatThrowsException(), doesThrow(withMessage(startsWith("file not found"))))</pre>
* <pre>assertThat(() -&gt; methodCallThatThrowsException(), doesThrow(withMessage(startsWith("file not found"))))</pre>
*
* @param messageMatcher
* the matcher to match the throwable's message with, which must not be {@code null}
Expand All @@ -1757,7 +1757,7 @@ public static <T extends Throwable> Matcher<T> withMessage(Matcher<String> 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:
* <pre>assertThat(() -> methodCallThatThrowsException(), doesThrow(withMessage("message")))</pre>
* <pre>assertThat(() -&; methodCallThatThrowsException(), doesThrow(withMessage("message")))</pre>
* This is shorthand for {@code doesThrow(withMessage(equalTo("message")))}.
*
* @param messageToMatch
Expand All @@ -1771,7 +1771,7 @@ public static <T extends Throwable> Matcher<T> 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:
* <pre>assertThat(() -> methodCallThatThrowsInvocationTargetException(), doesThrow(becauseOf(instanceOf(IOException.class))))</pre>
* <pre>assertThat(() -&gt; methodCallThatThrowsInvocationTargetException(), doesThrow(becauseOf(instanceOf(IOException.class))))</pre>
*
* @param causeMatcher
* the matcher to matcher the outer throwable's inner cause with, which must not be {@code null}
Expand Down

0 comments on commit 682ca4c

Please sign in to comment.