-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
RequireThis: False positive for lambda parameters #4207
Comments
I am on it. |
Would it be desirable for @MEZk @romani please address. Thanks. UPDATE: there's no violation for statement A because it's previous sibling isn't null and neither it's parent an Also, in the current form, @rnveach Please address. Thanks |
Yes, this is not an assignment.
Yes, this is an assignment. |
Fix is merged |
http://rveach.no-ip.org/checkstyle/checkstyle.php?action=view&config=2b75d3a2ecffeba47690e0416ccd9906&code=c5b8991fb27367d9bfbf7d120993a7cb&checkstyle=checkstyle-7.6.1-all.jar&printTree=
Expected: no violations as
this
cannot be used fors1
on line 8 and column 37 (compile time error);s1
on line 8 and column 43 is a lambda parameter and it does not make sense to prefix it withthis
.Note, that if
validateOnlyOverlapping
is set to true, the violations disappear.The text was updated successfully, but these errors were encountered: