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
IllegalType should ignore parameters of methods with modifiers not in 'memberModifiers' #6123
Comments
As the code shows that method only checks ignored method names. The method you are looking for is I am not seeing what the issue is but it looks valid to me. |
Indeed, I missed that isCheckedMethod() does not check for 'memberModifiers'. So I think the line I pointed out should be |
Now I see it, checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/IllegalTypeCheck.java Line 268 in 45d2cab
This is why violations for them aren't hidden. @romani Please confirm this issue and if |
Sorry for delay, issue is valid. @ebruneton , please be welcome with PR to fix this issue. |
…t in 'memberModifiers'
fix is merged. |
…t in 'memberModifiers'
…t in 'memberModifiers'
I would expect no error, since method 'm' is not public, and the check is configured for LITERAL_PUBLIC. The code seems to implement this logic (
checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/IllegalTypeCheck.java
Line 272 in 45d2cab
The text was updated successfully, but these errors were encountered: