We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83850bf commit cffb2f4Copy full SHA for cffb2f4
testlib/src/main/java/com/diffplug/spotless/StepHarnessBase.java
@@ -27,14 +27,15 @@ enum RoundTrip {
27
private final Formatter formatter;
28
29
protected StepHarnessBase(Formatter formatter, RoundTrip roundTrip) {
30
- this.formatter = Objects.requireNonNull(formatter);
31
if (roundTrip == RoundTrip.DONT_ROUNDTRIP) {
+ this.formatter = Objects.requireNonNull(formatter);
32
return;
33
}
34
Formatter roundTripped = SerializableEqualityTester.reserialize(formatter);
35
if (roundTrip == RoundTrip.ASSERT_EQUAL) {
36
Assertions.assertThat(roundTripped).isEqualTo(formatter);
37
38
+ this.formatter = roundTripped;
39
40
41
protected Formatter formatter() {
0 commit comments