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

Wrong annotations for rawtypes #672

Open
Luro02 opened this issue Jan 11, 2025 · 0 comments
Open

Wrong annotations for rawtypes #672

Luro02 opened this issue Jan 11, 2025 · 0 comments
Labels
bug Something isn't working high-priority Issues that should be solved as soon as possible

Comments

@Luro02
Copy link
Collaborator

Luro02 commented Jan 11, 2025

Description

The example line
private List<Integer> myList = new ArrayList() is flagged for the following two issues:

  • Unnecessary complexity: The types in <A, B, ...> can be removed [...]
  • Cast: We have to cast it to assure type safety

Neither of these are correct, it should instead be flagged as RawType

@Luro02 Luro02 added the bug Something isn't working label Jan 11, 2025
@Luro02 Luro02 added the high-priority Issues that should be solved as soon as possible label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high-priority Issues that should be solved as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant