Skip to content

Commit 03e68a9

Browse files
refactor: OpenRewrite best practices
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>
1 parent 83c8398 commit 03e68a9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

plugin/src/main/java/org/openrewrite/gradle/DelegatingProjectParser.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,7 @@ private ClassLoader getPluginClassLoader(Project project) {
181181
return pluginClassLoader;
182182
}
183183

184-
@Nullable
185-
private ClassLoader getAndroidPluginClassLoader(Project project) {
184+
private @Nullable ClassLoader getAndroidPluginClassLoader(Project project) {
186185
List<String> pluginIds = Arrays.asList(
187186
"com.android.application",
188187
"com.android.library",

plugin/src/main/java/org/openrewrite/gradle/RewriteExtension.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ public void setCheckstyleConfigFile(File configFile) {
9494
* Will prefer to return an explicitly configured checkstyle configuration file location.
9595
* If none has been specified, will attempt to auto-detect an appropriate file.
9696
*/
97-
@Nullable
98-
public File getCheckstyleConfigFile() {
97+
public @Nullable File getCheckstyleConfigFile() {
9998
if (checkstyleConfigFile == null && checkstyleConfigProvider != null) {
10099
try {
101100
return checkstyleConfigProvider.get();

0 commit comments

Comments
 (0)