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

AvoidModifiersForTypesCheck: add non-static qualifier #792

Open
leventov opened this issue Jan 4, 2020 · 1 comment
Open

AvoidModifiersForTypesCheck: add non-static qualifier #792

leventov opened this issue Jan 4, 2020 · 1 comment

Comments

@leventov
Copy link

leventov commented Jan 4, 2020

https://sevntu-checkstyle.github.io/sevntu.checkstyle/apidocs/com/github/sevntu/checkstyle/checks/coding/AvoidModifiersForTypesCheck.html

I think it would be useful to add non-static qualifier to AvoidModifiersForTypesCheck, to allow prohibit fields of certain types to be non-static, for example, Logger.

@romani
Copy link
Member

romani commented Jan 4, 2020

it should be some other check that demand modifier for a type, some imaginary name RequiredModifiersForTypes.

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

No branches or pull requests

2 participants