Skip to content

Commit 5d45439

Browse files
committed
Polishing
See gh-25921
1 parent 6f95467 commit 5d45439

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

spring-expression/src/main/java/org/springframework/expression/spel/ast/Literal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-expression/src/main/java/org/springframework/expression/spel/ast/OpMinus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-expression/src/test/java/org/springframework/expression/spel/ast/InlineCollectionTests.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -37,21 +37,21 @@
3737
public class InlineCollectionTests {
3838

3939
@Test
40-
public void testListCached() {
40+
void testListCached() {
4141
InlineList list = parseList("{1, -2, 3, 4}");
4242
assertThat(list.isConstant()).isTrue();
4343
assertThat(list.getConstantValue()).isEqualTo(Arrays.asList(1, -2, 3, 4));
4444
}
4545

4646
@Test
47-
public void testDynamicListNotCached() {
47+
void testDynamicListNotCached() {
4848
InlineList list = parseList("{1, 5-2, 3, 4}");
4949
assertThat(list.isConstant()).isFalse();
5050
assertThat(list.getValue(null)).isEqualTo(Arrays.asList(1, 3, 3, 4));
5151
}
5252

5353
@Test
54-
public void testListWithVariableNotCached() {
54+
void testListWithVariableNotCached() {
5555
InlineList list = parseList("{1, -a, 3, 4}");
5656
assertThat(list.isConstant()).isFalse();
5757
final StandardEvaluationContext standardEvaluationContext = new StandardEvaluationContext(new AHolder());
@@ -60,21 +60,21 @@ public void testListWithVariableNotCached() {
6060
}
6161

6262
@Test
63-
public void testListCanBeCompiled() {
63+
void testListCanBeCompiled() {
6464
SpelExpression listExpression = parseExpression("{1, -2, 3, 4}");
6565
assertThat(((SpelNodeImpl) listExpression.getAST()).isCompilable()).isTrue();
6666
assertThat(SpelCompiler.compile(listExpression)).isTrue();
6767
}
6868

6969
@Test
70-
public void testDynamicListCantBeCompiled() {
70+
void testDynamicListCantBeCompiled() {
7171
SpelExpression listExpression = parseExpression("{1, 5-2, 3, 4}");
7272
assertThat(((SpelNodeImpl) listExpression.getAST()).isCompilable()).isFalse();
7373
assertThat(SpelCompiler.compile(listExpression)).isFalse();
7474
}
7575

7676
@Test
77-
public void testMapCached() {
77+
void testMapCached() {
7878
InlineMap map = parseMap("{1 : 2, 3 : 4}");
7979
assertThat(map.isConstant()).isTrue();
8080
final Map<Integer, Integer> expected = new HashMap<>();
@@ -84,7 +84,7 @@ public void testMapCached() {
8484
}
8585

8686
@Test
87-
public void testMapWithNegativeKeyCached() {
87+
void testMapWithNegativeKeyCached() {
8888
InlineMap map = parseMap("{-1 : 2, -3 : 4}");
8989
assertThat(map.isConstant()).isTrue();
9090
final Map<Integer, Integer> expected = new HashMap<>();
@@ -94,7 +94,7 @@ public void testMapWithNegativeKeyCached() {
9494
}
9595

9696
@Test
97-
public void testMapWithNegativeValueCached() {
97+
void testMapWithNegativeValueCached() {
9898
InlineMap map = parseMap("{1 : -2, 3 : -4}");
9999
assertThat(map.isConstant()).isTrue();
100100
final Map<Integer, Integer> expected = new HashMap<>();
@@ -104,7 +104,7 @@ public void testMapWithNegativeValueCached() {
104104
}
105105

106106
@Test
107-
public void testMapWithNegativeLongTypesCached() {
107+
void testMapWithNegativeLongTypesCached() {
108108
InlineMap map = parseMap("{1L : -2L, 3L : -4L}");
109109
assertThat(map.isConstant()).isTrue();
110110
final Map<Long, Long> expected = new HashMap<>();
@@ -114,7 +114,7 @@ public void testMapWithNegativeLongTypesCached() {
114114
}
115115

116116
@Test
117-
public void testMapWithNegativeFloatTypesCached() {
117+
void testMapWithNegativeFloatTypesCached() {
118118
InlineMap map = parseMap("{-1.0f : -2.0f, -3.0f : -4.0f}");
119119
assertThat(map.isConstant()).isTrue();
120120
final Map<Float, Float> expected = new HashMap<>();
@@ -124,7 +124,7 @@ public void testMapWithNegativeFloatTypesCached() {
124124
}
125125

126126
@Test
127-
public void testMapWithNegativeRealTypesCached() {
127+
void testMapWithNegativeRealTypesCached() {
128128
InlineMap map = parseMap("{-1.0 : -2.0, -3.0 : -4.0}");
129129
assertThat(map.isConstant()).isTrue();
130130
final Map<Double, Double> expected = new HashMap<>();
@@ -134,7 +134,7 @@ public void testMapWithNegativeRealTypesCached() {
134134
}
135135

136136
@Test
137-
public void testMapWithNegativeKeyAndValueCached() {
137+
void testMapWithNegativeKeyAndValueCached() {
138138
InlineMap map = parseMap("{-1 : -2, -3 : -4}");
139139
assertThat(map.isConstant()).isTrue();
140140
final Map<Integer, Integer> expected = new HashMap<>();
@@ -144,7 +144,7 @@ public void testMapWithNegativeKeyAndValueCached() {
144144
}
145145

146146
@Test
147-
public void testMapWithDynamicNotCached() {
147+
void testMapWithDynamicNotCached() {
148148
InlineMap map = parseMap("{-1 : 2, -3+1 : -4}");
149149
assertThat(map.isConstant()).isFalse();
150150
final Map<Integer, Integer> expected = new HashMap<>();

0 commit comments

Comments
 (0)