Skip to content

Commit faba594

Browse files
committed
Provide ConfigurationClass#toString implementation
For ease during debugging; prompted while fixing SPR-8761.
1 parent c6a0f1e commit faba594

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClass.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ public int hashCode() {
151151
return getMetadata().getClassName().hashCode();
152152
}
153153

154+
@Override
155+
public String toString() {
156+
return String.format("[ConfigurationClass:beanName=%s,resource=%s]", this.beanName, this.resource);
157+
}
158+
154159

155160
/**
156161
* Configuration classes must be non-final to accommodate CGLIB subclassing.

0 commit comments

Comments
 (0)