Skip to content

Commit 1d44191

Browse files
committed
- r improve formatting
1 parent 48ca108 commit 1d44191

File tree

1 file changed

+40
-19
lines changed

1 file changed

+40
-19
lines changed

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

Lines changed: 40 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,53 @@
88
import org.approvaltests.reporters.macosx.KaleidoscopeDiffReporter;
99
import org.approvaltests.reporters.macosx.P4MergeReporter;
1010
import org.approvaltests.reporters.macosx.TkDiffReporter;
11-
import org.approvaltests.reporters.windows.*;
11+
import org.approvaltests.reporters.windows.AraxisMergeReporter;
12+
import org.approvaltests.reporters.windows.CodeCompareReporter;
13+
import org.approvaltests.reporters.windows.TortoiseDiffReporter;
14+
import org.approvaltests.reporters.windows.WinMergeReporter;
15+
import org.approvaltests.reporters.windows.WindowsDiffReporter;
1216
import org.lambda.functions.Function1;
1317

14-
import java.util.*;
18+
import java.util.Arrays;
19+
import java.util.HashMap;
20+
import java.util.List;
21+
import java.util.Map;
22+
import java.util.Objects;
1523
import java.util.stream.Collectors;
1624

1725
public class EnvironmentVariableReporter implements ApprovalFailureReporter
1826
{
1927
private final ApprovalFailureReporter reporter;
20-
private static final Map<String, Class<? extends ApprovalFailureReporter>> REPORTER_MAP = new MapBuilder(
21-
"AraxisMergeReporter", AraxisMergeReporter.class).and("AutoApproveReporter", AutoApproveReporter.class)
22-
.and("AutoApproveWhenEmptyReporter", AutoApproveWhenEmptyReporter.class)
23-
.and("BeyondCompareReporter", BeyondCompareReporter.class).and("ClipboardReporter", ClipboardReporter.class)
24-
.and("CodeCompareReporter", CodeCompareReporter.class)
25-
.and("DelayedClipboardReporter", DelayedClipboardReporter.class)
26-
.and("DiffMergeReporter", DiffMergeReporter.class).and("DiffReporter", DiffReporter.class)
27-
.and("FileCaptureReporter", FileCaptureReporter.class).and("ImageReporter", ImageReporter.class)
28-
.and("ImageWebReporter", ImageWebReporter.class).and("IntelliJReporter", IntelliJReporter.class)
29-
.and("JunitReporter", JunitReporter.class).and("KDiff3Reporter", KDiff3Reporter.class)
30-
.and("KaleidoscopeDiffReporter", KaleidoscopeDiffReporter.class)
31-
.and("MeldMergeReporter", MeldMergeReporter.class).and("P4MergeReporter", P4MergeReporter.class)
32-
.and("PitReporter", PitReporter.class).and("QuietReporter", QuietReporter.class)
33-
.and("TestNgReporter", TestNgReporter.class).and("TextWebReporter", TextWebReporter.class)
34-
.and("TkDiffReporter", TkDiffReporter.class).and("TortoiseDiffReporter", TortoiseDiffReporter.class)
35-
.and("VisualStudioCodeReporter", VisualStudioCodeReporter.class)
36-
.and("WinMergeReporter", WinMergeReporter.class).and("WindowsDiffReporter", WindowsDiffReporter.class);
28+
// @formatter:off
29+
private static final Map<String, Class<? extends ApprovalFailureReporter>> REPORTER_MAP =
30+
new MapBuilder("AraxisMergeReporter", AraxisMergeReporter.class)
31+
.and("AutoApproveReporter", AutoApproveReporter.class)
32+
.and("AutoApproveWhenEmptyReporter", AutoApproveWhenEmptyReporter.class)
33+
.and("BeyondCompareReporter", BeyondCompareReporter.class)
34+
.and("ClipboardReporter", ClipboardReporter.class)
35+
.and("CodeCompareReporter", CodeCompareReporter.class)
36+
.and("DelayedClipboardReporter", DelayedClipboardReporter.class)
37+
.and("DiffMergeReporter", DiffMergeReporter.class)
38+
.and("DiffReporter", DiffReporter.class)
39+
.and("FileCaptureReporter", FileCaptureReporter.class)
40+
.and("ImageReporter", ImageReporter.class)
41+
.and("ImageWebReporter", ImageWebReporter.class)
42+
.and("IntelliJReporter", IntelliJReporter.class)
43+
.and("JunitReporter", JunitReporter.class)
44+
.and("KDiff3Reporter", KDiff3Reporter.class)
45+
.and("KaleidoscopeDiffReporter", KaleidoscopeDiffReporter.class)
46+
.and("MeldMergeReporter", MeldMergeReporter.class)
47+
.and("P4MergeReporter", P4MergeReporter.class)
48+
.and("PitReporter", PitReporter.class)
49+
.and("QuietReporter", QuietReporter.class)
50+
.and("TestNgReporter", TestNgReporter.class)
51+
.and("TextWebReporter", TextWebReporter.class)
52+
.and("TkDiffReporter", TkDiffReporter.class)
53+
.and("TortoiseDiffReporter", TortoiseDiffReporter.class)
54+
.and("VisualStudioCodeReporter", VisualStudioCodeReporter.class)
55+
.and("WinMergeReporter", WinMergeReporter.class)
56+
.and("WindowsDiffReporter", WindowsDiffReporter.class);
57+
// @formatter:on
3758
public static final String ENVIRONMENT_VARIABLE_NAME = "APPROVAL_TESTS_USE_REPORTER";
3859
public static Function1<String, String> ENVIRONMENT_VARIABLES = System::getenv;
3960
public static final EnvironmentVariableReporter INSTANCE = new EnvironmentVariableReporter();

0 commit comments

Comments
 (0)