Suppresses RLC non-final field overwrite warning for safe constructor field initialization#7050
Suppresses RLC non-final field overwrite warning for safe constructor field initialization#7050iamsanjaymalakar wants to merge 139 commits into
Conversation
… field initialization
kelloggm
left a comment
There was a problem hiding this comment.
Overall looks good, just a few minor comments. I'd like to take one more look before we merge, though.
|
@iamsanjaymalakar The typecheck job is not passing. |
kelloggm
left a comment
There was a problem hiding this comment.
LGTM, I don't need to review again. Please address these comments and then request a review from Mike.
|
@iamsanjaymalakar Martin asked you to assign me when you had addressed his comments. Have you addressed them? |
Yes, I have. You can take a look. |
mernst
left a comment
There was a problem hiding this comment.
Please clarify some documentation, and update the code if necessary. (I didn't read the code because there is no point in doing so until the documentation is clear.)
|
@mernst CircleCI build is failing. I think it is not picking up the correct jdk annotations branch. |
|
@iamsanjaymalakar I have fixed the CI problem. |
Thanks. It's ready for review then. |
|
@iamsanjaymalakar Could you take a look at "ResourceLeakFirstInitConstructorTest" which is failing in CI? Thanks. |
@mernst the test failure is happenning due to the same CI not picking up the latest code changes to the In my local workspace, when I checkout to the |
| } | ||
|
|
||
| @Override | ||
| public FirstWriteScanResult reduce(FirstWriteScanResult r1, FirstWriteScanResult r2) { |
There was a problem hiding this comment.
Is it a bug if this method is ever called? If so, I suggest replacing its body with a throw statement.
|
|
||
| @Override | ||
| public FirstWriteScanResult reduce(FirstWriteScanResult r1, FirstWriteScanResult r2) { | ||
| // Preserve the first decisive result found among the children. |
There was a problem hiding this comment.
What if both REASSIGNMENT and FIRST_ASSIGNMENT appear in the list? For a switch statement, we would prefer to return FIRST_ASSIGNMENT. Maybe it would help to explain in what circumstances this method is called.
Summary by CodeRabbit
New Features
Tests