mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-25 16:29:28 +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
@@ -372,7 +372,7 @@ class SelectionAndProjectionTests {
|
||||
/**
|
||||
* Simulates a custom {@link Iterable} which is itself not a {@link Collection}.
|
||||
*/
|
||||
class Counter implements Iterable<Integer> {
|
||||
static class Counter implements Iterable<Integer> {
|
||||
|
||||
private final List<Integer> list = new ArrayList<>();
|
||||
|
||||
|
||||
+2
-2
@@ -6744,7 +6744,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
|
||||
}
|
||||
|
||||
|
||||
public class PayloadX {
|
||||
public static class PayloadX {
|
||||
|
||||
public int valueI = 120;
|
||||
public Integer valueIB = 120;
|
||||
@@ -7456,7 +7456,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
|
||||
}
|
||||
|
||||
|
||||
public class Reg {
|
||||
public static class Reg {
|
||||
|
||||
private Integer _value,_value2;
|
||||
private Long _valueL,_valueL2;
|
||||
|
||||
Reference in New Issue
Block a user