Use consistent block style
Update all code to use a consistent block style. Issue: SPR-16968
This commit is contained in:
committed by
Juergen Hoeller
parent
04a8c285df
commit
866e9d702e
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user