Skip to content

Commit

Permalink
support org.springframework.core.io.Resource as as return type; fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
stoicflame committed May 22, 2020
1 parent 4aa7a9c commit 03295d6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ else if (!returnsResponseBody) {
returnType = TypeMirrorUtils.objectType(this.env);
}

if (returnType.isInstanceOf("org.springframework.core.io.Resource")) {
//generic spring resource
returnType = TypeMirrorUtils.objectType(this.env);
}

DecoratedTypeMirror returnWrapped = JAXDocletUtil.getReturnWrapped(getDocComment(), this.env, getContext().getContext().getLogger());
if (returnWrapped != null) {
returnWrapped.setDeferredDocComment(new ReturnWrappedDocComment(this));
Expand Down

0 comments on commit 03295d6

Please sign in to comment.