Skip to content

Commit

Permalink
. e don't compile with java 17, we still want to be compatible with 8
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsEckart committed Aug 12, 2024
1 parent ea21b5a commit dddfa87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
8 changes: 0 additions & 8 deletions approvaltests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ public static String indent(String actual, String tab)
}
return output;
}

@Override
public void cleanUp(String received, String approved)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public EnvironmentVariableReporter()
reporter = null;
return;
}
var reporters = Arrays.stream(environmentValue.split(",")).distinct().map(REPORTER_MAP::get)
.filter(Objects::nonNull).map(reporterType -> (ApprovalFailureReporter) ClassUtils.create(reporterType))
.toList();
List<ApprovalFailureReporter> reporters = Arrays.stream(environmentValue.split(",")).distinct()
.map(REPORTER_MAP::get).filter(Objects::nonNull)
.map(reporterType -> (ApprovalFailureReporter) ClassUtils.create(reporterType)).toList();
switch (reporters.size())
{
case 0 : {
Expand Down

0 comments on commit dddfa87

Please sign in to comment.