Use consistent block style

Update all code to use a consistent block style.

Issue: SPR-16968
This commit is contained in:
Phillip Webb
2018-06-20 17:22:42 -07:00
committed by Juergen Hoeller
parent 04a8c285df
commit 866e9d702e
14 changed files with 111 additions and 44 deletions

View File

@@ -69,11 +69,12 @@ public class ExposeInvocationInterceptor implements MethodInterceptor, PriorityO
*/
public static MethodInvocation currentInvocation() throws IllegalStateException {
MethodInvocation mi = invocation.get();
if (mi == null)
if (mi == null) {
throw new IllegalStateException(
"No MethodInvocation found: Check that an AOP invocation is in progress, and that the " +
"ExposeInvocationInterceptor is upfront in the interceptor chain. Specifically, note that " +
"advices with order HIGHEST_PRECEDENCE will execute before ExposeInvocationInterceptor!");
}
return mi;
}