diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/parsing/BeanEntry.java b/spring-beans/src/main/java/org/springframework/beans/factory/parsing/BeanEntry.java index b1fded25d10..ccba6d76e68 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/parsing/BeanEntry.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/parsing/BeanEntry.java @@ -35,6 +35,7 @@ public class BeanEntry implements ParseState.Entry { this.beanDefinitionName = beanDefinitionName; } + @Override public String toString() { return "Bean '" + this.beanDefinitionName + "'"; diff --git a/spring-test/src/main/java/org/springframework/test/context/support/AbstractGenericContextLoader.java b/spring-test/src/main/java/org/springframework/test/context/support/AbstractGenericContextLoader.java index 8b31ed1873e..8794ec49f49 100644 --- a/spring-test/src/main/java/org/springframework/test/context/support/AbstractGenericContextLoader.java +++ b/spring-test/src/main/java/org/springframework/test/context/support/AbstractGenericContextLoader.java @@ -200,9 +200,9 @@ public abstract class AbstractGenericContextLoader extends AbstractContextLoader * Factory method for creating the {@link GenericApplicationContext} used by * this {@code ContextLoader}. *
The default implementation creates a {@code GenericApplicationContext} - * using the default constructor. This method may be overridden in subclasses - * — for example, to create a {@code GenericApplicationContext} with - * a custom {@link DefaultListableBeanFactory} implementation. + * using the default constructor. This method may get overridden e.g. to use + * a custom context subclass or to create a {@code GenericApplicationContext} + * with a custom {@link DefaultListableBeanFactory} implementation. * @return a newly instantiated {@code GenericApplicationContext} * @since 5.2.9 */