We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac235a0 commit df6f661Copy full SHA for df6f661
spring-messaging/src/main/java/org/springframework/messaging/support/MessageBuilder.java
@@ -201,7 +201,7 @@ public static <T> MessageBuilder<T> withPayload(T payload) {
201
* @since 4.1
202
*/
203
@SuppressWarnings("unchecked")
204
- public static <T> Message<T> createMessage(@Nullable T payload, MessageHeaders messageHeaders) {
+ public static <T> Message<T> createMessage(T payload, MessageHeaders messageHeaders) {
205
Assert.notNull(payload, "Payload must not be null");
206
Assert.notNull(messageHeaders, "MessageHeaders must not be null");
207
if (payload instanceof Throwable throwable) {
0 commit comments