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

ImmutableMemberCollection: support field-level @SuppressWarnings #2301

Conversation

Stephan202
Copy link
Contributor

Currently @SuppressWarnings("ImmutableMemberCollection") works at the class level but not the field level, which isn't very intuitive; this change resolves that.

@google-cla google-cla bot added the cla: yes label Apr 23, 2021
@@ -47,6 +47,23 @@ public void listInitInline_notMutated_replacesTypeWithImmutableList() {
.doTest();
}

@Test
public void setInitConstructor_notMutatedButSuppressed_doesNothing() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Tried to follow the test naming convention of other tests in this class.)

@Stephan202 Stephan202 deleted the improvement/ImmutableMemberCollection-field-suppression branch April 24, 2021 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants