Skip to content

Commit dddfa87

Browse files
committed
. e don't compile with java 17, we still want to be compatible with 8
1 parent ea21b5a commit dddfa87

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

approvaltests/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,6 @@
164164
</execution>
165165
</executions>
166166
</plugin>
167-
<plugin>
168-
<groupId>org.apache.maven.plugins</groupId>
169-
<artifactId>maven-compiler-plugin</artifactId>
170-
<configuration>
171-
<source>17</source>
172-
<target>17</target>
173-
</configuration>
174-
</plugin>
175167
</plugins>
176168
</build>
177169

approvaltests/src/main/java/org/approvaltests/inline/InlineJavaReporter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ public static String indent(String actual, String tab)
102102
}
103103
return output;
104104
}
105-
106105
@Override
107106
public void cleanUp(String received, String approved)
108107
{

approvaltests/src/main/java/org/approvaltests/reporters/EnvironmentVariableReporter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ public EnvironmentVariableReporter()
4848
reporter = null;
4949
return;
5050
}
51-
var reporters = Arrays.stream(environmentValue.split(",")).distinct().map(REPORTER_MAP::get)
52-
.filter(Objects::nonNull).map(reporterType -> (ApprovalFailureReporter) ClassUtils.create(reporterType))
53-
.toList();
51+
List<ApprovalFailureReporter> reporters = Arrays.stream(environmentValue.split(",")).distinct()
52+
.map(REPORTER_MAP::get).filter(Objects::nonNull)
53+
.map(reporterType -> (ApprovalFailureReporter) ClassUtils.create(reporterType)).toList();
5454
switch (reporters.size())
5555
{
5656
case 0 : {

0 commit comments

Comments
 (0)