Apply project formatting rules for ternary operator

Discovered via RegEx: ^\s+\?
This commit is contained in:
Sam Brannen
2022-11-29 17:51:13 +01:00
parent 61d8774da0
commit a88dbbec98
12 changed files with 27 additions and 36 deletions

View File

@@ -170,8 +170,8 @@ public class InvocableHandlerMethod extends HandlerMethod {
}
catch (IllegalArgumentException ex) {
assertTargetBean(getBridgedMethod(), getBean(), args);
String text = (ex.getMessage() == null || ex.getCause() instanceof NullPointerException)
? "Illegal argument": ex.getMessage();
String text = (ex.getMessage() == null || ex.getCause() instanceof NullPointerException) ?
"Illegal argument": ex.getMessage();
throw new IllegalStateException(formatInvokeError(text, args), ex);
}
catch (InvocationTargetException ex) {