Skip to content

Commit 80f1c88

Browse files
authored
Update expected indentation for LombokValueToRecordTest (#892)
1 parent 4a6fc6c commit 80f1c88

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/test/java/org/openrewrite/java/migrate/lombok/LombokValueToRecordTest.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ void convertOnlyValueAnnotatedClassWithoutDefaultValuesToRecord() {
5555
5656
@Value
5757
public class A {
58-
String test;
58+
String test;
5959
}
6060
""",
6161
"""
6262
package example;
6363
6464
public record A(
65-
String test) {
65+
String test) {
6666
}
6767
"""
6868
),
@@ -121,9 +121,9 @@ public class Test {
121121
""",
122122
"""
123123
public record Test(
124-
String field1,
124+
String field1,
125125
126-
String field2) {
126+
String field2) {
127127
@Override
128128
public String toString() {
129129
return "Test(" +
@@ -166,7 +166,7 @@ public class B {
166166
import lombok.Value;
167167
168168
public record A(
169-
String test) {
169+
String test) {
170170
}
171171
172172
@Value
@@ -201,7 +201,7 @@ static class B {
201201
202202
public class A {
203203
record B(
204-
String test) {
204+
String test) {
205205
}
206206
}
207207
"""
@@ -224,7 +224,7 @@ void interfaceIsImplementedThatDoesNotDefineFieldGetter() {
224224
225225
@Value
226226
public class A implements Serializable {
227-
String test;
227+
String test;
228228
}
229229
""",
230230
"""
@@ -233,7 +233,7 @@ public class A implements Serializable {
233233
import java.io.Serializable;
234234
235235
public record A(
236-
String test) implements Serializable {
236+
String test) implements Serializable {
237237
}
238238
"""
239239
)
@@ -255,7 +255,7 @@ void plainLombokBuilder() {
255255
@Value
256256
@Builder
257257
public class A implements Serializable {
258-
String test;
258+
String test;
259259
}
260260
""",
261261
"""
@@ -266,7 +266,7 @@ public class A implements Serializable {
266266
267267
@Builder
268268
public record A(
269-
String test) implements Serializable {
269+
String test) implements Serializable {
270270
}
271271
"""
272272
)
@@ -284,12 +284,12 @@ void booleanFieldWithIsGetter() {
284284
285285
@Value
286286
public class Foo {
287-
boolean bar;
287+
boolean bar;
288288
}
289289
""",
290290
"""
291291
public record Foo(
292-
boolean bar) {
292+
boolean bar) {
293293
}"""
294294
),
295295
java(
@@ -322,16 +322,16 @@ void multipleBooleanFields() {
322322
323323
@Value
324324
public class Config {
325-
boolean enabled;
326-
Boolean active;
327-
String name;
325+
boolean enabled;
326+
Boolean active;
327+
String name;
328328
}
329329
""",
330330
"""
331331
public record Config(
332-
boolean enabled,
333-
Boolean active,
334-
String name) {
332+
boolean enabled,
333+
Boolean active,
334+
String name) {
335335
}
336336
"""
337337
),
@@ -370,7 +370,7 @@ void methodReferences() {
370370
371371
@Value
372372
class A {
373-
String test;
373+
String test;
374374
}
375375
376376
class Using {
@@ -384,7 +384,7 @@ Supplier<String> usingMethodReference() {
384384
import java.util.function.Supplier;
385385
386386
record A(
387-
String test) {
387+
String test) {
388388
}
389389
390390
class Using {
@@ -491,7 +491,7 @@ void nonJava17Class() {
491491
492492
@Value
493493
public class A {
494-
String test;
494+
String test;
495495
}
496496
"""
497497
),

0 commit comments

Comments
 (0)