From 71e70aed14e7200425ee34e85c65d033bdeb6b73 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 27 Aug 2020 17:13:33 +0200 Subject: [PATCH] Polishing --- .../springframework/beans/factory/parsing/BeanEntry.java | 1 + .../test/context/support/AbstractGenericContextLoader.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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 */