diff --git a/spring-integration-xml/src/main/java/org/springframework/integration/xml/transformer/UnmarshallingTransformer.java b/spring-integration-xml/src/main/java/org/springframework/integration/xml/transformer/UnmarshallingTransformer.java index f4bc8fdc53..d4289f1406 100644 --- a/spring-integration-xml/src/main/java/org/springframework/integration/xml/transformer/UnmarshallingTransformer.java +++ b/spring-integration-xml/src/main/java/org/springframework/integration/xml/transformer/UnmarshallingTransformer.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ package org.springframework.integration.xml.transformer; +import java.io.ByteArrayInputStream; import java.io.File; import java.io.IOException; @@ -110,6 +111,9 @@ public class UnmarshallingTransformer extends AbstractPayloadTransformer("message: " + new String(bytes).trim()); + } + return "hello " + new String(bytes).trim(); + } return null; } + @Override public boolean supports(Class clazz) { return true; }