Skip to content

Commit 682ca4c

Browse files
committed
#329 Replaced > with > in JavaDoc which was causing build failures with some JDKs
1 parent 5058b28 commit 682ca4c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hamcrest/src/main/java/org/hamcrest/Matchers.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,7 @@ public static org.hamcrest.Matcher<org.w3c.dom.Node> hasXPath(java.lang.String x
17161716
* Creates a {@link Throws} object that matches a throwable according to the given throwable matcher.
17171717
* This can be used with the {@link MatcherAssert#assertThat(String, Executable, Throws)} family of methods.
17181718
* For example:
1719-
* <pre>assertThat(() -> methodCallThatThrowsException(), doesThrow(withMessage("file not found")))</pre>
1719+
* <pre>assertThat(() -&gt; methodCallThatThrowsException(), doesThrow(withMessage("file not found")))</pre>
17201720
*
17211721
* @param throwableMatcher
17221722
* the matcher for the throwable to match, which must not be {@code null}
@@ -1729,7 +1729,7 @@ public static <T extends Throwable> Throws<T> doesThrow(Matcher<? super Throwabl
17291729
* Creates a {@link Throws} object that matches a throwable of the given type.
17301730
* This can be used with the {@link MatcherAssert#assertThat(String, Executable, Throws)} family of methods.
17311731
* For example:
1732-
* <pre>assertThat(() -> methodCallThatThrowsIOException(), throwsInstanceOf(IOException.class))</pre>
1732+
* <pre>assertThat(() -&gt; methodCallThatThrowsIOException(), throwsInstanceOf(IOException.class))</pre>
17331733
* This is shorthand for {@code doesThrow(instanceOf(MyThrowable.class))}, to be used as equivalent for JUnit 5's
17341734
* {@code assertThrows(MyThrowable.class, () -> {})}.
17351735
*
@@ -1744,7 +1744,7 @@ public static <T extends Throwable> Throws<T> throwsInstanceOf(Class<T> throwabl
17441744
* Creates a matcher that matches a throwable by matching its message.
17451745
* This can be used with the {@link MatcherAssert#assertThat(String, Executable, Throws)} family of methods.
17461746
* For example:
1747-
* <pre>assertThat(() -> methodCallThatThrowsException(), doesThrow(withMessage(startsWith("file not found"))))</pre>
1747+
* <pre>assertThat(() -&gt; methodCallThatThrowsException(), doesThrow(withMessage(startsWith("file not found"))))</pre>
17481748
*
17491749
* @param messageMatcher
17501750
* the matcher to match the throwable's message with, which must not be {@code null}
@@ -1757,7 +1757,7 @@ public static <T extends Throwable> Matcher<T> withMessage(Matcher<String> messa
17571757
* Creates a matcher that matches a throwable by its message.
17581758
* This can be used with the {@link MatcherAssert#assertThat(String, Executable, Throws)} family of methods.
17591759
* For example:
1760-
* <pre>assertThat(() -> methodCallThatThrowsException(), doesThrow(withMessage("message")))</pre>
1760+
* <pre>assertThat(() -&; methodCallThatThrowsException(), doesThrow(withMessage("message")))</pre>
17611761
* This is shorthand for {@code doesThrow(withMessage(equalTo("message")))}.
17621762
*
17631763
* @param messageToMatch
@@ -1771,7 +1771,7 @@ public static <T extends Throwable> Matcher<T> withMessage(String messageToMatch
17711771
* Creates a matcher that matches an outer throwable by matching its inner cause.
17721772
* This can be used with the {@link MatcherAssert#assertThat(String, Executable, Throws)} family of methods.
17731773
* For example:
1774-
* <pre>assertThat(() -> methodCallThatThrowsInvocationTargetException(), doesThrow(becauseOf(instanceOf(IOException.class))))</pre>
1774+
* <pre>assertThat(() -&gt; methodCallThatThrowsInvocationTargetException(), doesThrow(becauseOf(instanceOf(IOException.class))))</pre>
17751775
*
17761776
* @param causeMatcher
17771777
* the matcher to matcher the outer throwable's inner cause with, which must not be {@code null}

0 commit comments

Comments
 (0)