Skip to content

Commit e8ef93c

Browse files
committed
Polish contribution
See spring-projectsgh-24321
1 parent 047eefd commit e8ef93c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-aop/src/main/java/org/springframework/aop/framework/AopContext.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -67,8 +67,8 @@ public static Object currentProxy() throws IllegalStateException {
6767
Object proxy = currentProxy.get();
6868
if (proxy == null) {
6969
throw new IllegalStateException(
70-
"Cannot find current proxy: Set 'exposeProxy' property on Advised to 'true' to make it available. " +
71-
"Also Check AopContext.currentProxy() invoke in the origin thread.");
70+
"Cannot find current proxy: Set 'exposeProxy' property on Advised to 'true' to make it available, and " +
71+
"ensure that AopContext.currentProxy() is invoked in the same thread as the AOP invocation context.");
7272
}
7373
return proxy;
7474
}

0 commit comments

Comments
 (0)