commit | 57e9e07754d791fdf08fb322292bd88103484105 | [log] [tgz] |
---|---|---|
author | Clément Béra <clementbera@google.com> | Tue Mar 07 14:18:54 2023 +0100 |
committer | Clément Béra <clementbera@google.com> | Tue Mar 07 14:18:54 2023 +0100 |
tree | 867a7da9e031f99e83c2674ea1f2dfad96644e4a | |
parent | bc9edbb61f64846533c9fd3d2a245aafd6757b1b [diff] |
Flip flag in SupportedClasses analysis - fix red bots Change-Id: I7d3817cbcb9938d30e51e6c148119dcbae4bbb04
diff --git a/src/main/java/com/android/tools/r8/ir/desugar/desugaredlibrary/lint/SupportedClassesGenerator.java b/src/main/java/com/android/tools/r8/ir/desugar/desugaredlibrary/lint/SupportedClassesGenerator.java index dec96bf..b165a93 100644 --- a/src/main/java/com/android/tools/r8/ir/desugar/desugaredlibrary/lint/SupportedClassesGenerator.java +++ b/src/main/java/com/android/tools/r8/ir/desugar/desugaredlibrary/lint/SupportedClassesGenerator.java
@@ -99,7 +99,7 @@ fullySupported &= analyzeMissingMembers(maxClass.methods(), methods, missingMethods); fullySupported &= builder.getFieldAnnotations(clazz).isEmpty(); for (MethodAnnotation methodAnnotation : builder.getMethodAnnotations(clazz).values()) { - fullySupported &= !methodAnnotation.isCovariantReturnSupported(); + fullySupported &= methodAnnotation.isCovariantReturnSupported(); } builder.annotateClass( clazz.type, new ClassAnnotation(fullySupported, missingFields, missingMethods));