Skip to content

Commit d2dc9c5

Browse files
agebhar1garyrussell
authored andcommitted
fix JavaDoc code snippet on PayloadMatcher
1 parent cd0f56b commit d2dc9c5

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
@@ -33,8 +33,8 @@
3333
* <pre class="code">
3434
* {@code
3535
* ANY_PAYLOAD = new BigDecimal("1.123");
36-
* Message<BigDecimal message = MessageBuilder.withPayload(ANY_PAYLOAD).build();
37-
* assertThat(message, hasPayload(ANY_PAYLOjAD));
36+
* Message<BigDecimal> message = MessageBuilder.withPayload(ANY_PAYLOAD).build();
37+
* assertThat(message, hasPayload(ANY_PAYLOAD));
3838
* }
3939
* </pre>
4040
*
@@ -44,6 +44,7 @@
4444
*
4545
* <pre class="code">
4646
* ANY_PAYLOAD = new BigDecimal("1.123");
47+
* Message<BigDecimal> message = MessageBuilder.withPayload(ANY_PAYLOAD).build();
4748
* assertThat(message, PayloadMatcher.hasPayload(is(BigDecimal.class)));
4849
* assertThat(message, PayloadMatcher.hasPayload(notNullValue()));
4950
* assertThat(message, not((PayloadMatcher.hasPayload(is(String.class))))); *

0 commit comments

Comments
 (0)