Skip to content

Commit bd067da

Browse files
committed
Fiux Checkstyle violation in the BaseMessageBuilder
1 parent f87aff3 commit bd067da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-integration-core/src/main/java/org/springframework/integration/support/BaseMessageBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,10 @@ public Message<T> build() {
310310

311311
return this.originalMessage;
312312
}
313-
if (payload instanceof Throwable throwable) {
314-
return (Message<T>) new ErrorMessage(throwable, getHeaders());
313+
if (this.payload instanceof Throwable throwable) {
314+
return (Message<T>) new ErrorMessage(throwable, this.headerAccessor.toMap());
315315
}
316-
return new GenericMessage<>(payload, getHeaders());
316+
return new GenericMessage<>(this.payload, this.headerAccessor.toMap());
317317
}
318318

319319
private boolean containsReadOnly(MessageHeaders headers) {

0 commit comments

Comments
 (0)