diff options
author | bhagwani <bhagwani@google.com> | 2019-07-03 18:11:41 -0700 |
---|---|---|
committer | David P. Baker <dpb@google.com> | 2019-08-19 12:23:56 -0400 |
commit | e1beeff27a63825fd90e8c800483c346dac4a4df (patch) | |
tree | d7e5e247d0216dfb6e6155b1dbecc76ff1f1a1b3 /common | |
parent | 00d71972f010e615aee490f33293b73f9fe04381 (diff) | |
download | auto-e1beeff27a63825fd90e8c800483c346dac4a4df.tar.gz |
Suppress warnings about TypeMirror.equals in some cases where we are calling it deliberately.
See [] for more details
#TypeEqualsCleanup
RELNOTES=Suppress TypeEquals check
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=256471146
Diffstat (limited to 'common')
-rw-r--r-- | common/src/main/java/com/google/auto/common/MoreTypes.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/src/main/java/com/google/auto/common/MoreTypes.java b/common/src/main/java/com/google/auto/common/MoreTypes.java index b46d06d6..94e0b059 100644 --- a/common/src/main/java/com/google/auto/common/MoreTypes.java +++ b/common/src/main/java/com/google/auto/common/MoreTypes.java @@ -208,6 +208,7 @@ public final class MoreTypes { } @Override + @SuppressWarnings("TypeEquals") public Boolean visitError(ErrorType a, EqualVisitorParam p) { return a.equals(p.type); } @@ -295,6 +296,7 @@ public final class MoreTypes { } } + @SuppressWarnings("TypeEquals") private static boolean equal(TypeMirror a, TypeMirror b, Set<ComparedElements> visiting) { // TypeMirror.equals is not guaranteed to return true for types that are equal, but we can // assume that if it does return true then the types are equal. This check also avoids getting |