Skip to content

Commit 38e591f

Browse files
agebhar1garyrussell
authored andcommitted
fix JavaDoc code snippet on PayloadMatcher
1 parent e5fadc3 commit 38e591f

File tree

1 file changed

+3
-2
lines changed
  • spring-integration-test-support/src/main/java/org/springframework/integration/test/matcher

1 file changed

+3
-2
lines changed

spring-integration-test-support/src/main/java/org/springframework/integration/test/matcher/PayloadMatcher.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
* <pre class="code">
3535
* {@code
3636
* ANY_PAYLOAD = new BigDecimal("1.123");
37-
* Message<BigDecimal message = MessageBuilder.withPayload(ANY_PAYLOAD).build();
38-
* assertThat(message, hasPayload(ANY_PAYLOjAD));
37+
* Message<BigDecimal> message = MessageBuilder.withPayload(ANY_PAYLOAD).build();
38+
* assertThat(message, hasPayload(ANY_PAYLOAD));
3939
* }
4040
* </pre>
4141
*
@@ -45,6 +45,7 @@
4545
*
4646
* <pre class="code">
4747
* ANY_PAYLOAD = new BigDecimal("1.123");
48+
* Message<BigDecimal> message = MessageBuilder.withPayload(ANY_PAYLOAD).build();
4849
* assertThat(message, PayloadMatcher.hasPayload(is(BigDecimal.class)));
4950
* assertThat(message, PayloadMatcher.hasPayload(notNullValue()));
5051
* assertThat(message, not((PayloadMatcher.hasPayload(is(String.class))))); *

0 commit comments

Comments
 (0)