diff --git a/spring-test/src/test/java/org/springframework/test/context/bean/override/OverrideMetadataTests.java b/spring-test/src/test/java/org/springframework/test/context/bean/override/OverrideMetadataTests.java index 8f84af1ab1cf..54836b7592b2 100644 --- a/spring-test/src/test/java/org/springframework/test/context/bean/override/OverrideMetadataTests.java +++ b/spring-test/src/test/java/org/springframework/test/context/bean/override/OverrideMetadataTests.java @@ -231,27 +231,27 @@ static String foo() { public static class ConfigA { - private ExampleService noQualifier; + ExampleService noQualifier; @Qualifier("test") - private ExampleService directQualifier; + ExampleService directQualifier; @Qualifier("different") - private ExampleService differentDirectQualifier; + ExampleService differentDirectQualifier; @CustomQualifier - private ExampleService customQualifier; + ExampleService customQualifier; } public static class ConfigB { - private ExampleService noQualifier; + ExampleService noQualifier; - private ExampleService example; + ExampleService example; @Qualifier("test") - private ExampleService directQualifier; + ExampleService directQualifier; } diff --git a/spring-test/src/test/java/org/springframework/test/context/bean/override/convention/TestBeanContextCustomizerEqualityTests.java b/spring-test/src/test/java/org/springframework/test/context/bean/override/convention/TestBeanContextCustomizerEqualityTests.java index 0030f074565a..22ddb34c8067 100644 --- a/spring-test/src/test/java/org/springframework/test/context/bean/override/convention/TestBeanContextCustomizerEqualityTests.java +++ b/spring-test/src/test/java/org/springframework/test/context/bean/override/convention/TestBeanContextCustomizerEqualityTests.java @@ -89,7 +89,7 @@ static class Case4 { @TestBean private String description; - private static String description() { + static String description() { return "overridden"; } } @@ -99,7 +99,7 @@ static class Case5 { @TestBean(name = "descriptionBean") private String description; - private static String description() { + static String description() { return "overridden"; } }