Skip to content

Commit

Permalink
refactor: OpenRewrite best practices
Browse files Browse the repository at this point in the history
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.recipes.OpenRewriteBestPractices?organizationId=T3BlblJld3JpdGU%3D

Co-authored-by: Moderne <team@moderne.io>
  • Loading branch information
timtebeek and TeamModerne committed Apr 25, 2024
1 parent f7dfb14 commit 47c3095
Show file tree
Hide file tree
Showing 20 changed files with 19 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ public J.Literal visitLiteral(J.Literal literal, ExecutionContext ctx) {
};
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,4 @@ private boolean isParentTypeMatched(@Nullable JavaType type) {
}
});
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ public J.MethodInvocation visitMethodInvocation(J.MethodInvocation method, Execu
}
);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ private J.Literal maybeReplaceLiteralValue(J.Literal arg) {
}
);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ public J visitMethodInvocation(J.MethodInvocation method, ExecutionContext ctx)
}
};
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ public J.VariableDeclarations visitVariableDeclarations(J.VariableDeclarations m
}
);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ public J.ClassDeclaration visitClassDeclaration(J.ClassDeclaration classDecl, Ex
}
);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ public boolean isEmbeddableClass(@Nullable JavaType type) {
});
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@ public J.VariableDeclarations visitVariableDeclarations(J.VariableDeclarations m
}
);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ private boolean shouldRemoveFinalize(JavaType type) {
});
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ public <T> T unwrap(Class<T> iface) throws java.sql.SQLException {
)
);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -347,4 +347,4 @@ Iterable<String> foo(Iterable<Optional<String>> optionals) {
"""));
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,4 @@ void migrateJCP() {
)
);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ void noSchemaCD12() {
)
);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ void fileNotFacesConfigXml() {
);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ void fileNotTagLibraryXml() {
);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ void fileNotWebFragmentXml() {
);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ void fileNotWebXml() {
);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,3 @@ public void test() throws IOException {
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,4 @@ public class TemporalDates {
)
);
}
}
}

0 comments on commit 47c3095

Please sign in to comment.