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 Jul 19, 2024
1 parent 6f251ab commit aa561cd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package org.openrewrite.staticanalysis;

import org.junit.jupiter.api.Test;
import org.openrewrite.DocumentExample;
import org.openrewrite.test.RecipeSpec;
import org.openrewrite.test.RewriteTest;

Expand All @@ -28,6 +29,7 @@ public void defaults(RecipeSpec spec) {
spec.recipe(new NullableOnMethodReturnType());
}

@DocumentExample
@Test
void nullableOnMethodReturnType() {
rewriteRun(
Expand Down

0 comments on commit aa561cd

Please sign in to comment.