Skip to content

Commit

Permalink
Add @SuppressWarnings to a test that deliberately calls TypeMirror.eq…
Browse files Browse the repository at this point in the history
…uals.

See [] for more details

#TypeEqualsCleanup

RELNOTES=Suppress TypeEquals warning

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=256461683
  • Loading branch information
sumitbhagwani authored and netdpb committed Aug 19, 2019
1 parent 81134b5 commit 00d7197
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public void testQuirkyTypeMirrors() {
}

@Test
@SuppressWarnings("TypeEquals") // We want to test the equals method invocation on TypeMirror.
public void testTypeMirrorSet() {
// Test the TypeMirrorSet methods. Resist the temptation to rewrite these in terms of
// Truth operations! For example, don't change assertThat(set.size()).isEqualTo(0) into
Expand Down

0 comments on commit 00d7197

Please sign in to comment.