Polishing

This commit is contained in:
Oleg Zhurakousky
2019-09-23 11:27:09 -04:00
parent e490eda5ff
commit 2217d8aace

View File

@@ -671,8 +671,10 @@ public class BeanFactoryAwareFunctionRegistry
} }
private boolean messageNeedsConversion(Type rawType, Message<?> message) { private boolean messageNeedsConversion(Type rawType, Message<?> message) {
String skipConversion = message.getHeaders().get(FunctionProperties.SKIP_CONVERSION_HEADER, String.class); Boolean skipConversion = message.getHeaders().containsKey(FunctionProperties.SKIP_CONVERSION_HEADER)
if (StringUtils.hasText(skipConversion) && Boolean.valueOf(skipConversion)) { ? message.getHeaders().get(FunctionProperties.SKIP_CONVERSION_HEADER, Boolean.class)
: false;
if (skipConversion) {
return false; return false;
} }
return rawType instanceof Class<?> return rawType instanceof Class<?>