Skip to content

Added option to provide a custom FQN to AnnotateNullableMethods recipe#491

Merged
jevanlingen merged 6 commits into
mainfrom
feature/add_fqn_option_to_annotate_nullable_methods
Apr 2, 2025
Merged

Added option to provide a custom FQN to AnnotateNullableMethods recipe#491
jevanlingen merged 6 commits into
mainfrom
feature/add_fqn_option_to_annotate_nullable_methods

Conversation

@JohannisK

@JohannisK JohannisK commented Apr 1, 2025

Copy link
Copy Markdown
Contributor

What's changed?

Added option to provide a custom FQN to AnnotateNullableMethods recipe

What's your motivation?

As requested in

Anyone you would like to review specifically?

@jevanlingen
@Laurens-W
@greg-at-moderne

@JohannisK JohannisK self-assigned this Apr 1, 2025
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Apr 1, 2025
github-actions[bot]

This comment was marked as outdated.

Comment thread src/main/java/org/openrewrite/staticanalysis/AnnotateNullableMethods.java Outdated
@JohannisK JohannisK moved this from In Progress to Ready to Review in OpenRewrite Apr 1, 2025
Comment thread src/main/java/org/openrewrite/staticanalysis/AnnotateNullableMethods.java Outdated
github-actions[bot]

This comment was marked as outdated.

github-actions[bot]

This comment was marked as outdated.

@jevanlingen jevanlingen merged commit 59dc3a5 into main Apr 2, 2025
@jevanlingen jevanlingen deleted the feature/add_fqn_option_to_annotate_nullable_methods branch April 2, 2025 08:43
@github-project-automation github-project-automation Bot moved this from Ready to Review to Done in OpenRewrite Apr 2, 2025
Comment on lines +54 to +56
"By default `org.jspecify.annotations.Nullable` is used, but through the `nullableAnnotationClass` option a custom annotation can be provided." +
"When providing a custom `nullableAnnotationClass` that annotation should be meta annotated with `@Target(TYPE_USE)`." +
"This recipe scans for methods that do not already have a `@Nullable` annotation and checks their return " +

@timtebeek timtebeek Apr 3, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind adding a space after each of the end of line dots here? It's often forgotten, but when these strings get concatenated the missing spaces will make the docs hard to read.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants