From e8ef93c508d27f7e90e90b0fd1be388000a00f0e Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 9 Jan 2020 15:55:56 +0100 Subject: [PATCH] Polish contribution See gh-24321 --- .../java/org/springframework/aop/framework/AopContext.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-aop/src/main/java/org/springframework/aop/framework/AopContext.java b/spring-aop/src/main/java/org/springframework/aop/framework/AopContext.java index 6a2f2ebb42..9653ced6bc 100644 --- a/spring-aop/src/main/java/org/springframework/aop/framework/AopContext.java +++ b/spring-aop/src/main/java/org/springframework/aop/framework/AopContext.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -67,8 +67,8 @@ public final class AopContext { Object proxy = currentProxy.get(); if (proxy == null) { throw new IllegalStateException( - "Cannot find current proxy: Set 'exposeProxy' property on Advised to 'true' to make it available. " + - "Also Check AopContext.currentProxy() invoke in the origin thread."); + "Cannot find current proxy: Set 'exposeProxy' property on Advised to 'true' to make it available, and " + + "ensure that AopContext.currentProxy() is invoked in the same thread as the AOP invocation context."); } return proxy; }