Skip to content

[WIP] Replace Micronaut nullability annotations with JSpecify#848

Merged
sdelamo merged 2 commits into7.0.xfrom
copilot/replace-micronaut-nullability-annotations
Dec 2, 2025
Merged

[WIP] Replace Micronaut nullability annotations with JSpecify#848
sdelamo merged 2 commits into7.0.xfrom
copilot/replace-micronaut-nullability-annotations

Conversation

Copy link
Contributor

Copilot AI commented Dec 1, 2025

  • Identify all files with Micronaut nullability annotations
  • Replace io.micronaut.core.annotation.Nullable with org.jspecify.annotations.Nullable
  • Replace io.micronaut.core.annotation.NonNull with org.jspecify.annotations.NonNull
  • Update r2dbc-core files: BasicR2dbcProperties.java, DefaultBasicR2dbcProperties.java
  • Update doc-examples Java files: AuthorRepository.java, BookRepository.java
  • Update doc-examples Groovy files: AuthorRepository.groovy, BookRepository.groovy
  • Update test-graalvm files: OwnerDto.java, TestApp.java

All 8 files have been updated to use JSpecify annotations instead of Micronaut annotations.

Original prompt

This section details on the original issue you should resolve

<issue_title>Replace Micronaut nullability annotations with JSpecify nullability annotation</issue_title>
<issue_description>Replace usages of io.micronaut.core.annotation.Nullable with org.jspecify.annotations.Nullable and usages of io.micronaut.core.annotation.NonNull with org.jspecify.annotations.NonNull.

Don't add the jspecify dependency to the project. Don't attempt to compile the project. t is ok if the project does not compile. The PR base should be the default branch of the repository.

Once you create a PR, ask for a review from @sdelamo</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@sdelamo
Copy link
Contributor

sdelamo commented Dec 1, 2025

@copilot please retry

Co-authored-by: sdelamo <864788+sdelamo@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Dec 1, 2025

@copilot please retry

Done. I've replaced all Micronaut nullability annotations with JSpecify annotations in commit 3da4635.

Updated 8 files:

  • r2dbc-core/src/main/java/io/micronaut/r2dbc/BasicR2dbcProperties.java
  • r2dbc-core/src/main/java/io/micronaut/r2dbc/DefaultBasicR2dbcProperties.java
  • doc-examples/example-java/src/main/java/example/AuthorRepository.java
  • doc-examples/example-java/src/main/java/example/BookRepository.java
  • doc-examples/example-groovy/src/main/groovy/example/AuthorRepository.groovy
  • doc-examples/example-groovy/src/main/groovy/example/BookRepository.groovy
  • test-graalvm/common/src/main/java/testgraalvm/controllers/dto/OwnerDto.java
  • test-graalvm/common-tests/src/main/java/example/controllers/TestApp.java

@sdelamo sdelamo marked this pull request as ready for review December 2, 2025 09:02
@sdelamo sdelamo merged commit 8b2bb33 into 7.0.x Dec 2, 2025
1 check was pending
@sdelamo sdelamo deleted the copilot/replace-micronaut-nullability-annotations branch December 2, 2025 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace Micronaut nullability annotations with JSpecify nullability annotation

3 participants