Remove redundant `toString()` call and trailing "in" from error message

The `formatErrorForReturnValue` method in `ServletInvocableHandlerMethod` previously included an unnecessary call to `toString()` and a dangling "in" at the end of the formatted string.

Since the surrounding context already provides sufficient information, both the `toString()` call and the `" in"` suffix have been removed to improve clarity.

No functional changes.

Signed-off-by: wonyongg <111210881+wonyongg@users.noreply.github.com>
This commit is contained in:
wonyongg 2025-06-15 21:08:21 +09:00
parent 8dc9621ad7
commit 3f35c41f17
1 changed files with 1 additions and 2 deletions

View File

@ -189,8 +189,7 @@ public class ServletInvocableHandlerMethod extends InvocableHandlerMethod {
private String formatErrorForReturnValue(@Nullable Object returnValue) {
return "Error handling return value=[" + returnValue + "]" +
(returnValue != null ? ", type=" + returnValue.getClass().getName() : "") +
" in " + toString();
(returnValue != null ? ", type=" + returnValue.getClass().getName() : "");
}
/**