Skip to content

Commit c6b1bcf

Browse files
authored
Followup after the formatting merge (#978)
* Followup after the formatting merge * Followup after the formatting merge
1 parent 4f3aaa0 commit c6b1bcf

3 files changed

Lines changed: 7 additions & 14 deletions

File tree

src/test/java/org/openrewrite/java/migrate/jspecify/JSpecifyBestPracticesTest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ public class Test {
7272
public String field1;
7373
@Nullable
7474
public String field2;
75-
7675
public Foo.@Nullable Bar foobar;
7776
}
7877
@@ -179,7 +178,6 @@ public class Test {
179178
public String field1;
180179
@Nullable
181180
public String field2;
182-
183181
public Foo.@Nullable Bar foobar;
184182
}
185183
@@ -271,7 +269,6 @@ public class Test {
271269
public String field1;
272270
@Nullable
273271
public String field2;
274-
275272
public Foo.@Nullable Bar foobar;
276273
}
277274
@@ -366,7 +363,6 @@ public class Test {
366363
public String field1;
367364
@Nullable
368365
public String field2;
369-
370366
public Foo.@Nullable Bar foobar;
371367
}
372368
@@ -457,7 +453,6 @@ public class Test {
457453
public String field1;
458454
@Nullable
459455
public String field2;
460-
461456
public Foo.@Nullable Bar foobar;
462457
}
463458

src/test/java/org/openrewrite/java/migrate/lang/StringFormattedTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,18 @@ void textBlock() {
6969
package com.example.app;
7070
class A {
7171
String str = String.format(\"""
72-
foo
73-
%s
74-
\""", "a");
72+
foo
73+
%s
74+
\""", "a");
7575
}
7676
""",
7777
"""
7878
package com.example.app;
7979
class A {
8080
String str = \"""
81-
foo
82-
%s
83-
\""".formatted("a");
81+
foo
82+
%s
83+
\""".formatted("a");
8484
}
8585
"""
8686
),

src/test/java/org/openrewrite/java/migrate/lang/UseTextBlocksTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,7 @@ private static TabsAndIndentsStyle buildTabsAndIndents(int tabSize) {
471471
tabSize,
472472
tabSize,
473473
tabSize * 2,
474-
false,
475-
new TabsAndIndentsStyle.MethodDeclarationParameters(true),
476-
new TabsAndIndentsStyle.RecordComponents(true));
474+
false);
477475
}
478476

479477
@Test

0 commit comments

Comments
 (0)