diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java b/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java index c99741dcef..b0351f4aa9 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java @@ -587,7 +587,7 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp // Attempt to predict the bean type Class> predictedType = null; - // We're looking for a regular reference but we're a factory bean that has + // We're looking for a regular reference, but we're a factory bean that has // a decorated bean definition. The target bean should be the same type // as FactoryBean would ultimately return. if (!isFactoryDereference && dbd != null && isFactoryBean(beanName, mbd)) { @@ -625,7 +625,7 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp } else if (isFactoryDereference) { // Special case: A SmartInstantiationAwareBeanPostProcessor returned a non-FactoryBean - // type but we nevertheless are being asked to dereference a FactoryBean... + // type, but we nevertheless are being asked to dereference a FactoryBean... // Let's check the original bean class and proceed with it if it is a FactoryBean. predictedType = predictBeanType(beanName, mbd, FactoryBean.class); if (predictedType == null || !FactoryBean.class.isAssignableFrom(predictedType)) { diff --git a/spring-test/src/main/java/org/springframework/test/context/ContextConfiguration.java b/spring-test/src/main/java/org/springframework/test/context/ContextConfiguration.java index 8b65d08e2b..7690bbbf32 100644 --- a/spring-test/src/main/java/org/springframework/test/context/ContextConfiguration.java +++ b/spring-test/src/main/java/org/springframework/test/context/ContextConfiguration.java @@ -169,7 +169,7 @@ public @interface ContextConfiguration { Class extends ApplicationContextInitializer>>[] initializers() default {}; /** - * Whether or not {@linkplain #locations resource locations} or + * Whether {@linkplain #locations resource locations} or * {@linkplain #classes component classes} from test superclasses * should be inherited. *
The default value is {@code true}. This means that an annotated test @@ -224,7 +224,7 @@ public @interface ContextConfiguration { boolean inheritLocations() default true; /** - * Whether or not {@linkplain #initializers context initializers} from test + * Whether {@linkplain #initializers context initializers} from test * superclasses should be inherited. *
The default value is {@code true}. This means that an annotated test * class will inherit the application context initializers defined