Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ming zheng
Spring Cloud Function
Commits
2217d8aa
Commit
2217d8aa
authored
5 years ago
by
Oleg Zhurakousky
Browse files
Options
Download
Email Patches
Plain Diff
Polishing
parent
e490eda5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spring-cloud-function-context/src/main/java/org/springframework/cloud/function/context/catalog/BeanFactoryAwareFunctionRegistry.java
+4
-2
...ion/context/catalog/BeanFactoryAwareFunctionRegistry.java
with
4 additions
and
2 deletions
+4
-2
spring-cloud-function-context/src/main/java/org/springframework/cloud/function/context/catalog/BeanFactoryAwareFunctionRegistry.java
+
4
-
2
View file @
2217d8aa
...
...
@@ -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
<?>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help