Preserve overridden toString result in HandlerMethod copy constructor

Closes gh-32184
This commit is contained in:
Juergen Hoeller
2024-02-01 19:14:11 +01:00
parent 1a783f41aa
commit ae17b11b70

View File

@@ -198,7 +198,7 @@ public class HandlerMethod extends AnnotatedMethod {
this.responseStatus = handlerMethod.responseStatus;
this.responseStatusReason = handlerMethod.responseStatusReason;
this.resolvedFromHandlerMethod = handlerMethod;
this.description = handlerMethod.description;
this.description = handlerMethod.toString();
}