Skip to content

Commit 1aa40fc

Browse files
committed
Polish
1 parent f4d9d06 commit 1aa40fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/openrewrite/java/migrate/UseTabsOrSpaces.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public String getDisplayName() {
4444
@Override
4545
public String getDescription() {
4646
return "This is useful for one-off migrations of a codebase that has mixed indentation styles, while " +
47-
"preserving all other auto-detected formatting rules.";
47+
"preserving all other auto-detected formatting rules.";
4848
}
4949

5050
@Override
@@ -54,7 +54,7 @@ public TreeVisitor<?, ExecutionContext> getVisitor() {
5454
public J visit(@Nullable Tree tree, ExecutionContext ctx) {
5555
if (tree instanceof JavaSourceFile) {
5656
JavaSourceFile cu = (JavaSourceFile) requireNonNull(tree);
57-
TabsAndIndentsStyle style = Style.from( TabsAndIndentsStyle.class, ((SourceFile) cu) );
57+
TabsAndIndentsStyle style = Style.from(TabsAndIndentsStyle.class, cu);
5858
if (style == null) {
5959
style = IntelliJ.tabsAndIndents();
6060
}

0 commit comments

Comments
 (0)