|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2022 the original author or authors. |
| 2 | + * Copyright 2002-2023 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -212,7 +212,7 @@ public Class<?> getBeanType() {
|
212 | 212 |
|
213 | 213 | /**
|
214 | 214 | * If the bean method is a bridge method, this method returns the bridged
|
215 |
| - * (user-defined) method. Otherwise it returns the same method as {@link #getMethod()}. |
| 215 | + * (user-defined) method. Otherwise, it returns the same method as {@link #getMethod()}. |
216 | 216 | */
|
217 | 217 | protected Method getBridgedMethod() {
|
218 | 218 | return this.bridgedMethod;
|
@@ -298,8 +298,8 @@ public HandlerMethod createWithResolvedBean() {
|
298 | 298 | * Return a short representation of this handler method for log message purposes.
|
299 | 299 | */
|
300 | 300 | public String getShortLogMessage() {
|
301 |
| - int args = this.method.getParameterCount(); |
302 |
| - return getBeanType().getSimpleName() + "#" + this.method.getName() + "[" + args + " args]"; |
| 301 | + return getBeanType().getSimpleName() + "#" + this.method.getName() + |
| 302 | + "[" + this.method.getParameterCount() + " args]"; |
303 | 303 | }
|
304 | 304 |
|
305 | 305 |
|
@@ -365,13 +365,11 @@ protected void assertTargetBean(Method method, Object targetBean, Object[] args)
|
365 | 365 | }
|
366 | 366 |
|
367 | 367 | protected String formatInvokeError(String text, Object[] args) {
|
368 |
| - |
369 | 368 | String formattedArgs = IntStream.range(0, args.length)
|
370 | 369 | .mapToObj(i -> (args[i] != null ?
|
371 | 370 | "[" + i + "] [type=" + args[i].getClass().getName() + "] [value=" + args[i] + "]" :
|
372 | 371 | "[" + i + "] [null]"))
|
373 | 372 | .collect(Collectors.joining(",\n", " ", " "));
|
374 |
| - |
375 | 373 | return text + "\n" +
|
376 | 374 | "Endpoint [" + getBeanType().getName() + "]\n" +
|
377 | 375 | "Method [" + getBridgedMethod().toGenericString() + "] " +
|
|
0 commit comments