Commit 2217d8aa authored by Oleg Zhurakousky's avatar Oleg Zhurakousky
Browse files

Polishing

parent e490eda5
Showing with 4 additions and 2 deletions
+4 -2
......@@ -671,8 +671,10 @@ public class BeanFactoryAwareFunctionRegistry
}
private boolean messageNeedsConversion(Type rawType, Message<?> message) {
String skipConversion = message.getHeaders().get(FunctionProperties.SKIP_CONVERSION_HEADER, String.class);
if (StringUtils.hasText(skipConversion) && Boolean.valueOf(skipConversion)) {
Boolean skipConversion = message.getHeaders().containsKey(FunctionProperties.SKIP_CONVERSION_HEADER)
? message.getHeaders().get(FunctionProperties.SKIP_CONVERSION_HEADER, Boolean.class)
: false;
if (skipConversion) {
return false;
}
return rawType instanceof Class<?>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment