File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
spring-aop/src/main/java/org/springframework/aop/framework Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2019 the original author or authors.
2
+ * Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -254,7 +254,7 @@ public Object getObject() throws BeansException {
254
254
return getSingletonInstance ();
255
255
}
256
256
else {
257
- if (this .targetName == null && logger . isInfoEnabled () ) {
257
+ if (this .targetName == null ) {
258
258
logger .info ("Using non-singleton proxies with singleton targets is often undesirable. " +
259
259
"Enable prototype proxies by setting the 'targetName' property." );
260
260
}
@@ -600,8 +600,8 @@ private Advisor namedBeanToAdvisor(Object next) {
600
600
// We expected this to be an Advisor or Advice,
601
601
// but it wasn't. This is a configuration error.
602
602
throw new AopConfigException ("Unknown advisor type " + next .getClass () +
603
- "; Can only include Advisor or Advice type beans in interceptorNames chain except for last entry, " +
604
- "which may also be target or TargetSource" , ex );
603
+ "; can only include Advisor or Advice type beans in interceptorNames chain " +
604
+ "except for last entry which may also be target instance or TargetSource" , ex );
605
605
}
606
606
}
607
607
You can’t perform that action at this time.
0 commit comments