Make inner classes in tests static where feasible

Closes gh-36939

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
Yanming Zhou
2026-06-17 11:49:12 +02:00
committed by Sam Brannen
parent 292959e2ca
commit 0fc724b348
16 changed files with 58 additions and 59 deletions
@@ -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<>();
@@ -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;