Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove JSR 305 annotations #2408

Merged
merged 1 commit into from Jul 2, 2023
Merged

Remove JSR 305 annotations #2408

merged 1 commit into from Jul 2, 2023

Conversation

hgschmie
Copy link
Contributor

The findbugs jsr305 annotations jar uses annotations in the
javax.annotation namespace, which causes problems with JPMS.

Remove the annotations from the code base. The Jdbi code itself
transitions to error prone and spotbugs.

For code that uses Jdbi (and all tests), a new
annotation (org.jdbi.v3.core.mapper.reflect.Nullable) is introduced as
all candidates either do not have Runtime retention (spotbugs,
jetbrains), have problems with JPMS (jsr305), are very
specialized (spring) or obscure (checker framework).

Copy link
Member

@stevenschlansker stevenschlansker left a comment

Choose a reason for hiding this comment

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

Let's use the jakarta.annotation-api that provides Nullable and Nonnull rather than rolling our own, unless there's a reason not to.

@hgschmie
Copy link
Contributor Author

hgschmie commented Jul 1, 2023

replaced custom annotation with jakarta.

The findbugs jsr305 annotations jar uses annotations in the
javax.annotation namespace, which causes problems with JPMS.

Remove the annotations from the code base. The Jdbi code itself
transitions to error prone and spotbugs.

For code that uses Jdbi (and all tests), the Jakarta annotation-api
`jakarta.annotation.Nullable` is used as
other candidates either do not have Runtime retention (spotbugs,
jetbrains), have problems with JPMS (jsr305), or are very
specialized (spring) or obscure (checker framework).
@sonarcloud
Copy link

sonarcloud bot commented Jul 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@hgschmie hgschmie merged commit 762b122 into jdbi:master Jul 2, 2023
36 checks passed
@hgschmie hgschmie deleted the kill-jsr305 branch July 2, 2023 00:15
stevenschlansker added a commit that referenced this pull request Aug 7, 2023
As discussed in #2408, we should prefer the `jakarta` annotations,
but that's not what actually got committed here. So clean that up
stevenschlansker added a commit that referenced this pull request Aug 7, 2023
As discussed in #2408, we should prefer the `jakarta` annotations,
but that's not what actually got committed here. So clean that up
stevenschlansker added a commit that referenced this pull request Aug 7, 2023
As discussed in #2408, we should prefer the `jakarta` annotations,
but that's not what actually got committed here. So clean that up
stevenschlansker added a commit that referenced this pull request Aug 7, 2023
As discussed in #2408, we should prefer the `jakarta` annotations,
but that's not what actually got committed here. So clean that up
stevenschlansker added a commit that referenced this pull request Aug 9, 2023
As discussed in #2408, we should prefer the `jakarta` annotations,
but that's not what actually got committed here. So clean that up
stevenschlansker added a commit that referenced this pull request Aug 9, 2023
As discussed in #2408, we should prefer the `jakarta` annotations,
but that's not what actually got committed here. So clean that up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants