File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
spring-beans/src/main/java/org/springframework/beans/factory/support Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2012 the original author or authors.
2
+ * Copyright 2002-2014 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.
@@ -87,7 +87,12 @@ public boolean equals(Object other) {
87
87
88
88
@ Override
89
89
public String toString () {
90
- return "Generic bean: " + super .toString ();
90
+ StringBuilder sb = new StringBuilder ("Generic bean" );
91
+ if (this .parentName != null ) {
92
+ sb .append (" with parent '" ).append (this .parentName ).append ("'" );
93
+ }
94
+ sb .append (": " ).append (super .toString ());
95
+ return sb .toString ();
91
96
}
92
97
93
98
}
You can’t perform that action at this time.
0 commit comments