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 findbugs annotations #2456

Merged
merged 1 commit into from Aug 9, 2023
Merged

Remove findbugs annotations #2456

merged 1 commit into from Aug 9, 2023

Conversation

stevenschlansker
Copy link
Member

As discussed in #2408, we should prefer the jakarta annotations, but that's not what actually got committed here. So clean that up

@stevenschlansker stevenschlansker requested review from hgschmie and a team August 7, 2023 18:44
@stevenschlansker stevenschlansker force-pushed the scs-jakarta-annos branch 2 times, most recently from dd1a3a6 to c337ba6 Compare August 7, 2023 19:26
Copy link
Contributor

@hgschmie hgschmie left a comment

Choose a reason for hiding this comment

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

The code in the PR replaces annotations from the spotbugs-annotations jar, not the findbugs jsr305 jar. That was eliminated in #2408.

While it good to do so, the PR also needs to remove the jar references.

I am ok with the PR but it needs to get updated to remove the spotbugs-annotation references.

It may also make sense to add a section to the build pom akin to the basepom:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-dependency-plugin</artifactId>
    <configuration>
        <ignoredDependencies combine.children="append">
            <ignoredDependency>jakarta.annotation:jakarta.annotation-api</ignoredDependency>
    </configuration>
</plugin>

@@ -18,7 +18,8 @@
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;

import edu.umd.cs.findbugs.annotations.NonNull;
Copy link
Contributor

Choose a reason for hiding this comment

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

spotbugs-annotations


import edu.umd.cs.findbugs.annotations.NonNull;
import edu.umd.cs.findbugs.annotations.Nullable;
Copy link
Contributor

Choose a reason for hiding this comment

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

spotbugs-annotations

@hgschmie
Copy link
Contributor

hgschmie commented Aug 8, 2023

actually never mind, it seems I have unlearned on how to read diffs. :-) All good. The exclusion block would still be good.

As discussed in #2408, we should prefer the `jakarta` annotations,
but that's not what actually got committed here. So clean that up
@stevenschlansker
Copy link
Member Author

Why should we add a dependency ignore to the checker plugin? It passes the plugin checks fine right now.
I'll merge this and we can always tweak the build in a followup.

@sonarcloud
Copy link

sonarcloud bot commented Aug 9, 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 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@stevenschlansker stevenschlansker merged commit 5b2b041 into master Aug 9, 2023
36 checks passed
@stevenschlansker stevenschlansker deleted the scs-jakarta-annos branch August 9, 2023 02:35
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