Skip to content
This repository was archived by the owner on Jan 13, 2026. It is now read-only.

Commit 1053ba4

Browse files
refactor: Annotate null-checked method parameters with @Nullable (#145)
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.staticanalysis.AnnotateNullableParameters?organizationId=ODQ2MGExMTUtNDg0My00N2EwLTgzMGMtNGE1NGExMTBmZDkw Co-authored-by: Moderne <team@moderne.io>
1 parent d7dcb2d commit 1053ba4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rewrite-python/src/main/java/org/openrewrite/python/PythonVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ public J visitSlice(Py.Slice slice, P p) {
553553
right : new JRightPadded<>(t, after, markers);
554554
}
555555

556-
public Space visitSpace(Space space, PySpace.Location loc, P p) {
556+
public Space visitSpace(@Nullable Space space, PySpace.Location loc, P p) {
557557
//noinspection ConstantValue
558558
if (space == Space.EMPTY || space == Space.SINGLE_SPACE || space == null) {
559559
return space;

0 commit comments

Comments
 (0)