Skip to content

Commit

Permalink
fix changed instanceof by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
zifnab87 committed Jan 18, 2018
1 parent 9122365 commit f204abf
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -81,9 +81,8 @@ private void decorateHandlers(List<HandlerMethodReturnValueHandler> handlers) {
int index = handlers.indexOf(handler);
if(handler instanceof HttpEntityMethodProcessor) {
handlers.set(index, new JsonViewHttpEntityMethodProcessor(converters));
} else if(handler instanceof HandlerMethodReturnValueHandler) {
HandlerMethodReturnValueHandler valueHandler = handlers.get(index);
List<Object> responseBodyAdvice = (List<Object>) get(valueHandler,"advice");
} else if(handler instanceof RequestResponseBodyMethodProcessor) {
List<Object> responseBodyAdvice = (List<Object>) get(handler,"advice");
HandlerMethodReturnValueHandler delegate = new JsonViewResponseProcessor(converters, responseBodyAdvice);
handlers.set(index, new JsonViewReturnValueHandler(delegate, defaultView));
break;
Expand Down

0 comments on commit f204abf

Please sign in to comment.