mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-09 16:49:36 +00:00
Make inner classes in tests static where feasible
Closes gh-36939 Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
+1
-1
@@ -95,7 +95,7 @@ class ScheduledTaskTests {
|
||||
assertThat(scheduledTask.nextExecution()).isNull();
|
||||
}
|
||||
|
||||
class CountingRunnable implements Runnable {
|
||||
static class CountingRunnable implements Runnable {
|
||||
|
||||
int executionCount;
|
||||
|
||||
|
||||
+2
-2
@@ -525,7 +525,7 @@ class SpringValidatorAdapterTests {
|
||||
}
|
||||
|
||||
|
||||
public class BeanWithListElementConstraint {
|
||||
public static class BeanWithListElementConstraint {
|
||||
|
||||
@Valid
|
||||
private List<@NotNull String> property;
|
||||
@@ -540,7 +540,7 @@ class SpringValidatorAdapterTests {
|
||||
}
|
||||
|
||||
|
||||
public class BeanWithMapEntryConstraint {
|
||||
public static class BeanWithMapEntryConstraint {
|
||||
|
||||
@Valid
|
||||
private Map<@NotNull String, @NotNull String> property;
|
||||
|
||||
Reference in New Issue
Block a user