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

Prohibit access to static members via instance reference. #1191

Merged
merged 1 commit into from Jan 16, 2024

Conversation

k3p7i3
Copy link
Contributor

@k3p7i3 k3p7i3 commented Jan 14, 2024

Add pmd-xpath rule that prohibits access to static fields/methods via instance reference (particularly 'this' keyword).
Closes: #984

@k3p7i3
Copy link
Contributor Author

k3p7i3 commented Jan 15, 2024

@yegor256 review this pr, please)

@yegor256 yegor256 merged commit a83a9c5 into yegor256:master Jan 16, 2024
10 of 11 checks passed
@yegor256
Copy link
Owner

@k3p7i3 thanks!

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.

Non-static access to static fields and methods should be prohibited
2 participants