diff --git a/spring-context/src/main/java/org/springframework/context/annotation/AnnotationBeanNameGenerator.java b/spring-context/src/main/java/org/springframework/context/annotation/AnnotationBeanNameGenerator.java index b4f0271475a..4f2dc199fd3 100644 --- a/spring-context/src/main/java/org/springframework/context/annotation/AnnotationBeanNameGenerator.java +++ b/spring-context/src/main/java/org/springframework/context/annotation/AnnotationBeanNameGenerator.java @@ -47,7 +47,7 @@ import org.springframework.util.StringUtils; * *

If the annotation's value doesn't indicate a bean name, an appropriate * name will be built based on the short name of the class (with the first - * letter lower-cased), unless the two first letters are uppercase. For example: + * letter lower-cased), unless the first two letters are uppercase. For example: * *

com.xyz.FooServiceImpl -> fooServiceImpl
*
com.xyz.URLFooServiceImpl -> URLFooServiceImpl
diff --git a/spring-web/src/main/java/org/springframework/web/util/ContentCachingRequestWrapper.java b/spring-web/src/main/java/org/springframework/web/util/ContentCachingRequestWrapper.java index 562ab5b1cca..6b2bb021a82 100644 --- a/spring-web/src/main/java/org/springframework/web/util/ContentCachingRequestWrapper.java +++ b/spring-web/src/main/java/org/springframework/web/util/ContentCachingRequestWrapper.java @@ -189,7 +189,7 @@ public class ContentCachingRequestWrapper extends HttpServletRequestWrapper { * Return the cached request content as a byte array. *

The returned array will never be larger than the content cache limit. *

Note: The byte array returned from this method - * reflects the amount of content that has has been read at the time when it + * reflects the amount of content that has been read at the time when it * is called. If the application does not read the content, this method * returns an empty array. * @see #ContentCachingRequestWrapper(HttpServletRequest, int) diff --git a/spring-webflux/src/test/java/org/springframework/web/reactive/function/server/support/RouterFunctionMappingTests.java b/spring-webflux/src/test/java/org/springframework/web/reactive/function/server/support/RouterFunctionMappingTests.java index a7d5fce5a17..68f8b35ac4c 100644 --- a/spring-webflux/src/test/java/org/springframework/web/reactive/function/server/support/RouterFunctionMappingTests.java +++ b/spring-webflux/src/test/java/org/springframework/web/reactive/function/server/support/RouterFunctionMappingTests.java @@ -38,7 +38,7 @@ import static org.assertj.core.api.Assertions.assertThat; * @author Arjen Poutsma * @author Brian Clozel */ -public class RouterFunctionMappingTests { +class RouterFunctionMappingTests { private final ServerCodecConfigurer codecConfigurer = ServerCodecConfigurer.create(); diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolverTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolverTests.java index 96093503626..90c9d2513bf 100644 --- a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolverTests.java +++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolverTests.java @@ -340,7 +340,7 @@ public class ExceptionHandlerExceptionResolverTests { } @Test //gh-27156 - void resolveExceptionWithReasonResovledByMessageSource() throws Exception { + void resolveExceptionWithReasonResolvedByMessageSource() throws Exception { AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(MyConfig.class); StaticApplicationContext context = new StaticApplicationContext(ctx); Locale locale = Locale.ENGLISH; diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletInvocableHandlerMethodTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletInvocableHandlerMethodTests.java index ba386fce36b..08c5813b215 100644 --- a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletInvocableHandlerMethodTests.java +++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletInvocableHandlerMethodTests.java @@ -196,7 +196,6 @@ public class ServletInvocableHandlerMethodTests { context.refresh(); ConfigurableListableBeanFactory beanFactory = context.getBeanFactory(); - System.out.println(beanFactory.getType(beanName)); LocaleContextHolder.setLocale(locale); try {