Skip to content

Commit 659c2e7

Browse files
Extract documentation examples from tests
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.recipes.ExamplesExtractor?organizationId=QUxML01vZGVybmUvTW9kZXJuZSArIE9wZW5SZXdyaXRl Co-authored-by: Moderne <team@moderne.io>
1 parent d6af82d commit 659c2e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/resources/META-INF/rewrite/examples.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ examples:
373373
type: specs.openrewrite.org/v1beta/example
374374
recipeName: org.openrewrite.java.recipes.NoMutableStaticFieldsInRecipes
375375
examples:
376-
- description: '`NoMutableStaticFieldsInRecipesTest#removeNonFinalStaticFields`'
376+
- description: '`NoMutableStaticFieldsInRecipesTest#addFinalToStaticFields`'
377377
sources:
378378
- before: |
379379
import org.openrewrite.Recipe;
@@ -387,6 +387,7 @@ examples:
387387
388388
public class A extends Recipe {
389389
static final int immutable = 0;
390+
static final int mutable = 0;
390391
}
391392
language: java
392393
---

0 commit comments

Comments
 (0)