Unify method visibility of private classes
Apply checkstyle rule to ensure that private and package private classes do not have unnecessary public methods. Test classes have also been unified as much as possible to use default scoped inner-classes. Closes gh-7316
This commit is contained in:
@@ -70,7 +70,7 @@ class UserServiceAutoConfigurationTests {
|
||||
static class UserConfiguration {
|
||||
|
||||
@Bean
|
||||
public UserService myUserService() {
|
||||
UserService myUserService() {
|
||||
return new UserService("mine");
|
||||
}
|
||||
|
||||
|
||||
@@ -51,12 +51,12 @@ class TomcatLegacyCookieProcessorExampleTests {
|
||||
static class TestConfiguration {
|
||||
|
||||
@Bean
|
||||
public TomcatServletWebServerFactory tomcatFactory() {
|
||||
TomcatServletWebServerFactory tomcatFactory() {
|
||||
return new TomcatServletWebServerFactory(0);
|
||||
}
|
||||
|
||||
@Bean
|
||||
public WebServerFactoryCustomizerBeanPostProcessor postProcessor() {
|
||||
WebServerFactoryCustomizerBeanPostProcessor postProcessor() {
|
||||
return new WebServerFactoryCustomizerBeanPostProcessor();
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class SampleWebClientConfiguration {
|
||||
private static class ExampleController {
|
||||
|
||||
@RequestMapping("/example")
|
||||
public ResponseEntity<String> example() {
|
||||
ResponseEntity<String> example() {
|
||||
return ResponseEntity.ok().location(URI.create("https://other.example.com/example")).body("test");
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ class SampleWebClientTests {
|
||||
static class Config {
|
||||
|
||||
@Bean
|
||||
public RestTemplateBuilder restTemplateBuilder() {
|
||||
RestTemplateBuilder restTemplateBuilder() {
|
||||
return new RestTemplateBuilder().setConnectTimeout(Duration.ofSeconds(1))
|
||||
.setReadTimeout(Duration.ofSeconds(1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user