Skip to content

Conversation

@adangel
Copy link
Member

@adangel adangel commented Jul 11, 2025

Describe the PR

No error is logged anymore.

The debug logging looks like this:

[DEBUG] Invalid target type CLASS_EXTENDS of type annotation @org.checkerframework.checker.nullness.qual.Nullable for method or ctor detected. The annotation is ignored. Method: com.google.common.collect.MultimapBuilder#hashKeys. See https://github.com/pmd/pmd/issues/5344.
[DEBUG] Invalid target type CLASS_EXTENDS of type annotation @org.checkerframework.checker.nullness.qual.Nullable for method or ctor detected. The annotation is ignored. Method: com.google.common.collect.MultimapBuilder.MultimapBuilderWithKeys#hashSetValues. See https://github.com/pmd/pmd/issues/5344.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

@adangel adangel added this to the 7.16.0 milestone Jul 11, 2025
@github-actions
Copy link

github-actions bot commented Jul 11, 2025

Documentation Preview

No regression tested rules have been changed.

(comment created at 2025-07-22 17:38:49+00:00 for 0390b0d)

Copy link
Member

@oowekyala oowekyala left a comment

Choose a reason for hiding this comment

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

Looks good, thanks

@adangel adangel merged commit ba29e31 into pmd:main Jul 22, 2025
1 check passed
@adangel adangel deleted the java/fix-5344-invalid-target-type-of-type-annotation branch July 22, 2025 17:30
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.

[java] IllegalArgumentException: Invalid type reference for method or ctor type annotation: 16

2 participants