Skip to content

Commit

Permalink
need to bring just responseBodyAdvice not its wrapper.. last try
Browse files Browse the repository at this point in the history
  • Loading branch information
zifnab87 committed Jan 18, 2018
1 parent f204abf commit 1b8e054
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ private void decorateHandlers(List<HandlerMethodReturnValueHandler> handlers) {
if(handler instanceof HttpEntityMethodProcessor) {
handlers.set(index, new JsonViewHttpEntityMethodProcessor(converters));
} else if(handler instanceof RequestResponseBodyMethodProcessor) {
List<Object> responseBodyAdvice = (List<Object>) get(handler,"advice");
Object requestResponseBodyAdviceChain = get(handler,"advice");
List<Object> responseBodyAdvice = (List<Object>) get(requestResponseBodyAdviceChain, "responseBodyAdvice");
HandlerMethodReturnValueHandler delegate = new JsonViewResponseProcessor(converters, responseBodyAdvice);
handlers.set(index, new JsonViewReturnValueHandler(delegate, defaultView));
break;
Expand Down

0 comments on commit 1b8e054

Please sign in to comment.