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.
@@ -89,7 +89,12 @@ public boolean equals(Object other) {
89
89
90
90
@ Override
91
91
public String toString () {
92
- return "Generic bean: " + super .toString ();
92
+ StringBuilder sb = new StringBuilder ("Generic bean" );
93
+ if (this .parentName != null ) {
94
+ sb .append (" with parent '" ).append (this .parentName ).append ("'" );
95
+ }
96
+ sb .append (": " ).append (super .toString ());
97
+ return sb .toString ();
93
98
}
94
99
95
100
}
You can’t perform that action at this time.
0 commit comments