Skip to content

Commit b652150

Browse files
authored
Prevent breakage of usages of Spring's @nullable
1 parent dd7ec21 commit b652150

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ recipeList:
2626
- org.openrewrite.java.jspecify.MigrateFromJavaxAnnotationApi
2727
- org.openrewrite.java.jspecify.MigrateFromJakartaAnnotationApi
2828
- org.openrewrite.java.jspecify.MigrateFromJetbrainsAnnotations
29-
- org.openrewrite.java.jspecify.MigrateFromSpringFrameworkAnnotations
29+
# Running the following recipe on current versions of Spring can cause Spring to misunderstand a nullable field.
30+
# For instance, a custom Prometheus scrape endpoint with @Nullable Set<String> includedNames will fail if
31+
# includedNames is null and if @Nullable is @org.jspecify.Nullable.
32+
# - org.openrewrite.java.jspecify.MigrateFromSpringFrameworkAnnotations
3033

3134
---
3235
type: specs.openrewrite.org/v1beta/recipe

0 commit comments

Comments
 (0)